bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/338] assertion in bfd_link_add_undef in linker.c


From: amodra at bigpond dot net dot au
Subject: [Bug ld/338] assertion in bfd_link_add_undef in linker.c
Date: 18 Aug 2004 02:26:34 -0000

------- Additional Comments From amodra at bigpond dot net dot au  2004-08-18 
02:26 -------
The sequence of events in the linker is:

1) jiffies is referenced before being defined, so it is put on the undefs list.
jiffies at this point is bfd_link_hash_undefined

2) bfd_elf_record_link_assignment is called later, where "jiffies" is changed to
bfd_link_hash_new.  This is where things start to go wrong.

3) ldexp.c:fold_name changes the bfd_link_hash_new "jiffies" to
bfd_link_hash_undefined during lang_allocating_phase_enum, and calls
bfd_link_add_undef for the second time on the same symbol.

Either step (2) needs fixing, by removing the symbol from the undefs list, or we
hack step (3) to not call bfd_link_add_undef when und_next is already set.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
                   |redhat dot com              |dot au


http://sources.redhat.com/bugzilla/show_bug.cgi?id=338

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]