[PATCH] More aggressive --gc-sections

Ian Lance Taylor ian@wasabisystems.com
Thu Mar 18 17:16:00 GMT 2004


law@redhat.com writes:

> If you wanted to improve the long term maintainability of this code as
> well as its compatibility with non-GC'd code you could put the special
> GC related relocations into their own special section from the main
> relocations.

To clarify: don't use ELF relocations at all.  Instead, put the
required information in a special section.  That way the information
can be backend-independent.  (You can use the ELF relocation format if
you like, but something other format would probably be fine too).

Ian



More information about the Binutils mailing list