This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> I'm stumped: I can't figure out how to discard unused functions > using the -ffunction-sections and --gc-sections options to gcc > and ld. I know I've gotten it to work in the past with an ARM > target, but now I can't seem to get it to work with an H8 > target. FWIW, this seems to be something specific to the H8 target. Building with exactly the same source files and makefile using an m6812 tool-chain results in unused functions being discarded as advertised. Both tool-chains were built using identical build-scripts from the same source trees. I think it's a linker problem, since it looks like gcc is doing what it's supposed to: the functions are indeed in separate sections with the proper names, but ld just isn't doing the garbage collection. -- Grant Edwards grante@visi.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |