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

            Bug ID: 33267
           Summary: Test failures with CFLAGS="-O2
                    -mno-direct-extern-access"
           Product: binutils
           Version: 2.46 (HEAD)
            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: ---

At least some (probably all, but I didn't verify yet) tests just need
-mdirect-extern-access. If we do that, we will need a test to make sure the
flag is supported. I can send a patch later.

```
$ ~/git/binutils-gdb/configure --prefix=/usr CFLAGS="-O2
-mno-direct-extern-access" --disable-gdb
$ make -j$(nproc) -l$(nproc)
$ make -j$(nproc) -l$(nproc) check
$ grep ^FAIL ld/ld.log
FAIL: Build indirect-extern-access-1a without PIE
FAIL: Build indirect-extern-access-2a without PIE
FAIL: Build pr25749-1b (-pie -fPIE -w)
FAIL: S-records
FAIL: Build pr17689 with PIE without -fPIE
FAIL: Build pr17689 with PIE -z now without -fPIE
FAIL: Build pr17827 with PIE without -fPIE
FAIL: Build property 1 (.o)
FAIL: Build property 2 (.o)
FAIL: Build property-6.o
FAIL: Build pr22001-1a
FAIL: Build pr21997-1a
FAIL: Build protected-func-2 without PIE
FAIL: Build protected-func-2a without PIE
FAIL: Build protected-data-1 without PIE
FAIL: Build pr22001-1b
FAIL: Build pr21997-1b
FAIL: Run pr17689 with PIE without -fPIE
FAIL: Run pr17689 with PIE -z now without -fPIE
FAIL: Undefined weak symbol (-fno-PIE -no-pie)
```

I noticed when playing with default-enabling it locally.

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

Reply via email to