bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/6478] stab warnings cause linker errors


From: nickc at redhat dot com
Subject: [Bug ld/6478] stab warnings cause linker errors
Date: 6 May 2008 08:40:49 -0000

------- Additional Comments From nickc at redhat dot com  2008-05-06 08:40 
-------
Hi Vincent,

  I just tried your testcase with an i386-pc-netbsdaout toolchain built from the
latest mainline binutils sources.

  First of all, there appears to be a typo in your description.  You say:
"Further strangeness comes if we convert a.o into ELF, too", but I think that
you mean "...convert b.o..." as a.o has already been converted.

  Secondly - I do not get the problem you report when both files have been
converted to ELF:

  % gas/as-new a.s -o a.o
  % gas/as-new b.s -o b.o
  % binutils/objcopy a.o a.elf.o -O elf32-i386
  BFD: a.elf.o: warning: allocated section `.text' not in segment
  % binutils/objcopy b.o b.elf.o -O elf32-i386
  BFD: b.elf.o: warning: allocated section `.text' not in segment
  % ld/ld-new a.elf.o b.elf.o
  %

(Note: the linker did not display the stab warning text as a warning message in
this case.  This is probably a bug, although it may count as a "feature" if it
is because it is very hard to translate aout stabs warning messages into ELF
format).

I did get the error message about the undefined reference to _f when attempting
to link a.elf.o and b.o, so I am going to look into that.  But in the meantime I
would appreciate it if you could try re-running your testcase with an up to date
toolchain to see if you encounter the same behaviour as I did.

Cheers
  Nick


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=6478

------- 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]