bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/16698] New: BFD (GNU Binutils) 2.24 assertion fail elf32-a


From: maillist-gdb at barfooze dot de
Subject: [Bug binutils/16698] New: BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387
Date: Wed, 12 Mar 2014 14:53:01 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16698

            Bug ID: 16698
           Summary: BFD (GNU Binutils) 2.24 assertion fail
                    elf32-arm.c:12387
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: maillist-gdb at barfooze dot de

when building git, util-linux, or lzo with the following CFLAGS:
-fdata-sections -ffunction-sections -Os -g0 
-fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack -ftree-dce
and the following LDFLAGS:
-s -Wl,--gc-sections -Wl,-z,relro,-z,now

the assertion in the title will be triggered.

example:
/root:/src/build/git/git-1.8.4$ gcc  -fdata-sections -ffunction-sections -Os
-g0 
-fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack -ftree-dce 
-I. -DNO_GETTEXT  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' 
 -DNO_STRLCPY -DUSE_WILDMATCH -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"' -o
git-cred
ential-store -s -Wl,--gc-sections -Wl,-z,relro,-z,now  credential-store.o
libgit
.a xdiff/lib.a  -lz  -lcrypto -lpthread
/bin/ld: BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387
/bin/ld: BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387
collect2: error: ld returned 1 exit statusbin/ld: BFD (GNU Binutils) 2.24
assertion fail elf32-arm.c:12387
collect2: error: ld returned 1 exit status

some tests revealed that it's the combination of -s and -Wl,--gc-sections that
causes the hiccup, when dynamic linking is involved. maybe it's needed that
these flags have been applied to both the dso's and the program involved.
i've failed to produce a proper testcase.

the issue was not existent in binutils 2.22

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