This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A change to ld in the binutils 2.4 breaks Linux


With ld from binutils 1.9, under linux

gcc foo.c bar.c

won't link. This feature is used by the Linux shared library to make
sure all the necessary libraries are linked in. But with the new
binutils, under Linux

gcc foo.c bar.c

links ok. That breaks the Linux shared library. Eric, we have to either
change our tools or modify the binutils.


-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com
-----foo.c----
main ()
{
  extern int x;
  return x;
}
----bar.c----
int x = 0;

asm (".stabs \"_need_this_one\",0,0,0,0");