Clean up platform-specific code in gas/write.c

Alexandre Oliva aoliva@redhat.com
Fri Aug 18 12:05:00 GMT 2000


On Aug 17, 2000, Jeffrey A Law <law@cygnus.com> wrote:

> The *_fix_adjustable macros are supposed to tell the assembler when it
> can adjust a fixup so that it uses a section symbol + offset instead of
> the original symbol for the fixup.

> I don't know all the reasons behind this behavior, though it does have
> at least one positive effect -- it can shrink the size of a .o file as
> certain symbols may disappear if they're not referenced by relocs.

I believe that was the point behind the introduction of this behavior.

> Anyway, over time people realize that this behavior wasn't actually
> always desirable.  Sometimes this was due to target dependent
> issues, others due to object format issues, etc.

And sometimes, the assembler shouldn't do it because the linker could
bind the name to another location, in case of platforms that support
ELF shared libraries.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Binutils mailing list