delorie.com/archives/browse.cgi | search |
Hi, On Mar 30, 2:18=A0pm, DJ Delorie <d DOT DOT DOT AT delorie DOT com> wrote: > > P.S. GNU ld still links all *.o into the .EXE even if not used. > > You want to compile with -ffunction-sections -fdata-sections and when > linking use --gc-sections, assuming all those are supported by djgpp. I did try, but it didn't seem to do anything useful, probably because ... `-ffunction-sections' `-fdata-sections' Place each function or data item into its own section in the output file if the target supports arbitrary sections. The name of the function or the name of the data item determines the section's name in the output file. Isn't COFF limited in section naming? Perhaps that's why (other than just lacking somebody to implement it)?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |