bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/12499] New: Changes to .init_array support breaks eglibc-2.11.2


From: danglin at gcc dot gnu.org
Subject: [Bug ld/12499] New: Changes to .init_array support breaks eglibc-2.11.2 on hppa-linux
Date: Fri, 18 Feb 2011 03:49:40 +0000

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

           Summary: Changes to .init_array support breaks eglibc-2.11.2 on
                    hppa-linux
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden


...
CPP='gcc-4.4 -E -x c-header'   
/home2/dave/debian/glibc/eglibc-2.11.2/build-tre
e/hppa-libc/elf/ld.so.1 --library-path
/home2/dave/debian/glibc/eglibc-2.11.2/bu
ild-tree/hppa-libc:/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/m
ath:/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/elf:/home2/dave/
debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/dlfcn:/home2/dave/debian/glibc/e
glibc-2.11.2/build-tree/hppa-libc/nss:/home2/dave/debian/glibc/eglibc-2.11.2/bui
ld-tree/hppa-libc/nis:/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-lib
c/rt:/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/resolv:/home2/d
ave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/crypt:/home2/dave/debian/gli
bc/eglibc-2.11.2/build-tree/hppa-libc/nptl
/home2/dave/debian/glibc/eglibc-2.11.
2/build-tree/hppa-libc/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x
-o

/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/sunrpc/xbootparam_p
rot.T
make[3]: ***
[/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/sunrpc
/xbootparam_prot.stmp] Segmentation fault (core dumped)

Problem occurs in call_init trying to run constructors for newly built
libc.so.6.

/home2/dave/debian/glibc/eglibc-2.11.2/build-tree/hppa-libc/libc.so.6:
+file 
format elf32-hppa-linux

Contents of section .init_array:
159008 ffffffff 0015bee2 00000000           ............    

The ffffffff and 00000000 appear to come from merging .ctors into .init_array.
Calling 0xffffffff causes the segv.  ffffffff and 00000000 mark the limits
of .ctors as generated by crtstuff.c.

Building binutils with --disable-initfini-array avoids the error.

Not much documentation on this...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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