This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]