LD: function-level linking

Ian Lance Taylor iant@google.com
Mon Jul 10 16:49:00 GMT 2006


"Tzu-Chien Chiu" <tzuchien.chiu@gmail.com> writes:

> I got a warning from ld: "gc-sections option ignored."

That means that your specific backend does not have support for
gc-sections.

> or32-elf-gcc -o a.o -c -ffunction-sections -fdata-sections a.c

You need to add gc_mark_hook and gc_sweep_hook functions to
bfd/elf32-or32.c.

Ian



More information about the Binutils mailing list