* Re: [parisc-linux] Another possible linker problem
[not found] <E13AEnD-0000ju-00@noam.fc.hp.com>
@ 2000-07-06 23:06 ` Alan Modra
2000-07-06 23:16 ` Jeffrey A Law
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2000-07-06 23:06 UTC (permalink / raw)
To: Paul Bame; +Cc: parisc-linux
[cc to list in case others have the same problem.]
On Thu, 6 Jul 2000, Paul Bame wrote:
> I tried to x-compile ncurses-5.0 and the executables (tic, clear, tput,
> and so forth) will not link. They seem to be created from a couple of
> large .o files, produced from 'ld -r' I think. Here're the messages:
>
> hppa1.1-linux-gcc ../objects/tic.o ../objects/dump_entry.o -L../lib -L/usr/lib -lncurses -o tic
> /home/bame/xc/lib/gcc-lib/hppa1.1-linux/2.96.0614/../../../../hppa1.1-linux/bin/ld: can not size stub section: Bad value
I reckon this error is probably fixed by the patch I checked in last
night. elf32_hppa_size_stubs had this code in it
if (hash->root.type == bfd_link_hash_undefined
|| hash->root.type == bfd_link_hash_undefweak)
continue;
while (hash->root.type == bfd_link_hash_indirect
|| hash->root.type == bfd_link_hash_warning)
hash = (struct elf_link_hash_entry *)
hash->root.u.i.link;
and the problem is that we may have an indirect symbol (results from
symbol versioning) pointing to an undefined symbol. The simple fix is to
traverse the indirect links before checking for undefined syms.
Regards, Alan Modra
--
Linuxcare. Support for the Revolution.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [parisc-linux] Another possible linker problem
2000-07-06 23:06 ` [parisc-linux] Another possible linker problem Alan Modra
@ 2000-07-06 23:16 ` Jeffrey A Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 2000-07-06 23:16 UTC (permalink / raw)
To: Alan Modra; +Cc: Paul Bame, parisc-linux
In message <Pine.LNX.4.21.0007070848540.12175-100000@front.linuxcare.com.au>y
ou write:
> [cc to list in case others have the same problem.]
> I reckon this error is probably fixed by the patch I checked in last
> night. elf32_hppa_size_stubs had this code in it
>
> if (hash->root.type == bfd_link_hash_undefined
> || hash->root.type == bfd_link_hash_undefweak)
> continue;
>
> while (hash->root.type == bfd_link_hash_indirect
> || hash->root.type == bfd_link_hash_warning)
> hash = (struct elf_link_hash_entry *)
> hash->root.u.i.link;
>
> and the problem is that we may have an indirect symbol (results from
> symbol versioning) pointing to an undefined symbol. The simple fix is to
> traverse the indirect links before checking for undefined syms.
Yea, I don't think I ever implemented indirects in the PA tools. I suspect
there's other PA code that doesn't handle them correctly.
I'm glad to see someone making the right things happen with that old crusty
code.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-06 23:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E13AEnD-0000ju-00@noam.fc.hp.com>
2000-07-06 23:06 ` [parisc-linux] Another possible linker problem Alan Modra
2000-07-06 23:16 ` Jeffrey A Law
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.