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

             Bug #: 14769
           Summary: Gold generates bad executable with -z relro
           Product: binutils
           Version: 2.24 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: i...@airs.com
        ReportedBy: hjl.to...@gmail.com
                CC: ccout...@google.com
    Classification: Unclassified


When binutils is configured with

LDFLAGS="-Wl,-z,relro" \
/export/gnu/import/git/binutils/configure \
    --enable-shared -enable-gold --enable-plugins --enable-threads \
    --prefix=/usr/local \
    --with-local-prefix=/usr/local

I get

/bin/sh: line 1:  5787 Segmentation fault      "$tst" >
incremental_test_6.log-t 2>&1
FAIL: incremental_test_6
/bin/sh: line 1:  5800 Segmentation fault      "$tst" >
incremental_copy_test.log-t 2>&1
FAIL: incremental_copy_test
/bin/sh: line 1:  5827 Segmentation fault      "$tst" >
incremental_common_test_1.log-t 2>&1
FAIL: incremental_common_test_1
/bin/sh: line 1:  5860 Segmentation fault      "$tst" >
incremental_comdat_test_1.log-t 2>&1
FAIL: incremental_comdat_test_1
PASS: binary_unittest
/bin/sh: line 1:  5750 Segmentation fault      (core dumped) "$tst" >
incremental_test_3.log-t 2>&1
FAIL: incremental_test_3
/bin/sh: line 1:  5769 Segmentation fault      (core dumped) "$tst" >
incremental_test_4.log-t 2>&1
FAIL: incremental_test_4
/bin/sh: line 1:  5782 Segmentation fault      (core dumped) "$tst" >
incremental_test_5.log-t 2>&1
FAIL: incremental_test_5
[hjl@gnu-tools-1 testsuite]$ gdb incremental_test_6
GNU gdb (GDB) 7.5.50.20120930-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/export/build/gnu/binutils-gold/build-x86_64-linux/gold/testsuite/incremental_test_6...
warning: Loadable section ".jcr" outside of ELF segments

warning: Loadable section ".fini_array" outside of ELF segments

warning: Loadable section ".init_array" outside of ELF segments
BFD:
/export/build/gnu/binutils-gold/build-x86_64-linux/gold/testsuite/incremental_test_6:
invalid string offset 4199568 >= 968 for section `.strtab'
done.
(gdb) 

Gold generates bad executables.

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

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to