* gcc2_compiled.
@ 1996-04-09 17:29 Alan Modra
1996-04-09 20:55 ` gcc2_compiled Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 1996-04-09 17:29 UTC (permalink / raw)
To: gas2
Hello all,
Somewhere since gas-960129, the handling of symbols defined outside
of a segment such as "gcc2_compiled.", has changed. On elf32_i386, I
find that st_info is now zero (STT_NOTYPE), rather than one
(STT_OBJECT). This breaks insmod on linux, because it wrongly used
(sp->st_info & 0xf) == 0 to test for undefined symbols. I've fixed
insmod, but why the change? Is STT_NOTYPE correct for symbols such as
gcc2_compiled. ?
Alan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc2_compiled.
1996-04-09 17:29 gcc2_compiled Alan Modra
@ 1996-04-09 20:55 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1996-04-09 20:55 UTC (permalink / raw)
To: alan; +Cc: gas2
From: alan@spri.levels.unisa.edu.au (Alan Modra)
Date: Wed, 10 Apr 1996 09:59:36 +0930 (CST)
Somewhere since gas-960129, the handling of symbols defined outside
of a segment such as "gcc2_compiled.", has changed. On elf32_i386, I
find that st_info is now zero (STT_NOTYPE), rather than one
(STT_OBJECT). This breaks insmod on linux, because it wrongly used
(sp->st_info & 0xf) == 0 to test for undefined symbols. I've fixed
insmod, but why the change? Is STT_NOTYPE correct for symbols such as
gcc2_compiled. ?
The change was made for compatibility with other ELF assemblers. They
do not set the type of a symbol to STT_OBJECT unless the assembler
source specifically directs them to using the .type directive.
Also, gcc2_compiled does not represent an object, so STT_OBJECT seems
conceptually wrong.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-04-09 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-09 17:29 gcc2_compiled Alan Modra
1996-04-09 20:55 ` gcc2_compiled Ian Lance Taylor
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).