This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12067] New: PIE && prelink && -m31 = crash


echo 'main(){return 42;}'|gcc -m31 -fPIE -pie -g -o 1 -x c -;prelink 1;./1;echo $?
Segmentation fault
139

FAIL:
glibc-2.12-1.7.el6.s390
prelink-0.4.3-4.el6.s390x
gcc-4.4.4-13.el6.s390x
kernel-2.6.32-71.el6.s390x

PASS:
glibc-2.5-42.el5_4.5.s390
prelink-0.4.0-2.el5.s390x
gcc-4.1.2-46.el5_4.2.s390x
kernel-2.6.18-164.25.1.el5.s390x

It crashes on:
./sysdeps/s390/s390-32/elf/start.S
.L21:   l       %r5,36(%r9)    /* Load the e_flags field.  */
$r3 = in-file address
$r9 = (in-memory - in-file) offset
$r11 = in-memory address

Prelinking PIE does not make much sense but it can be run everywhere else.

It affects GDB gdb.base/break-interp.exp testcase.

-- 
           Summary: PIE && prelink && -m31 = crash
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper dot fsp at gmail dot com
        ReportedBy: jan dot kratochvil at redhat dot com
                CC: glibc-bugs at sources dot redhat dot com,luisgpm at
                    linux dot vnet dot ibm dot com
  GCC host triplet: s390-ibm-linux-gnu


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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