* relocations dropped for differences involving weak or ELF-global symbols
@ 2005-03-29 16:10 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2005-03-29 16:10 UTC (permalink / raw)
To: binutils
The thread starting at http://sourceware.org/ml/binutils/2003-01/msg00333.html points to an issue that I now also just ran into: In a statement like
.long sym - .
the relocation may be dropped only if sym is known to be static or ELF-global and protected/hidden/internal. This rule isn't getting observed, and according to the discussion back then this is mainly because gcc appearantly generates expressions incorrectly. Now, as in many other cases, I can understand (to a certain degree) that one wouldn't want to break handling gcc output, but on the other hand assembly programmers should have a way to get what public specifications allow. Hence I wonder whether this shouldn't be fixed (perhaps first in gcc, so that it doesn't reference non-static labels in expressions used for debug info generation, and then in gas), or whether there shouldn't alternatively be a mode gas could be put into to honor the ELF semantics in such expressions.
Thanks, Jan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-29 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 16:10 relocations dropped for differences involving weak or ELF-global symbols Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).