Mail Archives: djgpp/1996/11/26/03:54:31
hs AT sbbs DOT se (Henrik) writes:
>Hi everybody!
>ld isn't playing the way I want it to... Assume I compile these two files:
>---------- file1.cc
>char silly_buffer[10000];
>----------
>---------- file2.cc
>int main(void)
>{
>}
>----------
>and link them together with 'gcc file1.cc file2.cc', it turns out that the
>10000 bytes buffer is included in the final output file! Since the program
>(the start of which is defined to be main(), of course) doesn't reference it,
>I don't want it there!
[snip]
>//HSe
Add the -fconserve-space flag to your command line. :)
Karl
- Raw text -