public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Can I link a.out .o with ELF?
@ 2000-06-04 18:07 H . J . Lu
  2000-06-04 18:16 ` H . J . Lu
  2000-06-04 18:30 ` Alan Modra
  0 siblings, 2 replies; 16+ messages in thread
From: H . J . Lu @ 2000-06-04 18:07 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

I believe I used to be able to link a .o file in a.out on an ELF
system. But now I got

# gcc -o aout x.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped

on Linux/ia32/ELF. Any ideas?

Thanks.

-- 
H.J. Lu (hjl@gnu.org)

[-- Attachment #2: x.o --]
[-- Type: application/octet-stream, Size: 412 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Can I link a.out .o with ELF?
@ 2000-06-05 10:54 Mark Kettenis
  2000-06-05 11:15 ` H . J . Lu
  0 siblings, 1 reply; 16+ messages in thread
From: Mark Kettenis @ 2000-06-05 10:54 UTC (permalink / raw)
  To: hjl; +Cc: binutils

Hmm ...

   @@ -5030,10 +5033,8 @@ elf_link_output_extsym (h, data)
	     symbol foo@@GNU_1.2 is the default, which should be used when
	     foo is used with no version, then we add an indirect symbol
	     foo which points to foo@@GNU_1.2.  We ignore these symbols,
   -         since the indirected symbol is already in the hash table.  If
   -         the indirect symbol is non-ELF, fall through and output it.  */
   -      if ((h->elf_link_hash_flags & ELF_LINK_NON_ELF) == 0)
   -       return true;
   +         since the indirected symbol is already in the hash table.  */
   +      return true;

	  /* Fall through.  */
	case bfd_link_hash_warning:

... I find the "Fall through" just after `return true' rather
intriguing.

Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2000-06-05 11:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-04 18:07 Can I link a.out .o with ELF? H . J . Lu
2000-06-04 18:16 ` H . J . Lu
2000-06-04 18:30 ` Alan Modra
2000-06-04 18:38   ` H . J . Lu
2000-06-04 21:31     ` H . J . Lu
2000-06-04 22:17       ` H . J . Lu
2000-06-05  7:28         ` Alan Modra
2000-06-05  7:57           ` H . J . Lu
2000-06-05  8:58           ` H . J . Lu
2000-06-05  9:49           ` Ian Lance Taylor
2000-06-05 10:15             ` H . J . Lu
2000-06-05 10:16               ` Ian Lance Taylor
2000-06-05 10:23                 ` H . J . Lu
2000-06-05  7:46   ` H . J . Lu
2000-06-05 10:54 Mark Kettenis
2000-06-05 11:15 ` H . J . Lu

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).