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

            Bug ID: 34298
           Summary: pr25754-1ba fails with GCC trunk
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: sam at gentoo dot org
                CC: hjl.tools at gmail dot com
  Target Milestone: ---

Created attachment 16786
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16786&action=edit
pr25754-1a.c

With GCC trunk:
```
$ grep ^FAIL ld.log
FAIL: Run pr25754-1aa (-no-pie -fno-PIE -w)
FAIL: Run pr25754-1ba (-no-pie -fPIE -w)
```

test.sh:
```
#!/bin/bash
set -x

gcc -O3 -fno-PIE pr25754-1a.c -o pr25754-1a.o -c
gcc -fno-PIE pr25754-1b.s -o pr25754-1b.o -c
gcc -no-pie  -z noexecstack pr25754-1a.o pr25754-1b.o -o pr25754-1ba
./pr25754-1ba &> x.txt

grep -q "PASS" x.txt && exit 0

exit 1
```

It works with -O0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to