[Bug gold/21090] gcc compiled with --enable-default-pie show errors in binutils testsuite

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21090

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/19871] description of --pie, --pic-executable options contains wrong-looking statement

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=19871

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/21252] -shared/-pie create RWE LOAD segment

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21252

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug gprofng/30700] tmpdir/gp-collect-app_F test fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30700

--- Comment #1 from Sam James  ---
Reported by doko as well at
https://inbox.sourceware.org/binutils/86e6e812-4968-cd28-0c1c-6a38a053c...@debian.org/.

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


[Bug binutils/30699] objcopy: '--only-keep-debug for ELF relocatables' test fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30699

Sam James  changed:

   What|Removed |Added

 CC|doko at debian dot org |

--- Comment #2 from Sam James  ---
(wrong bug, sorry)

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


[Bug gprofng/30700] New: tmpdir/gp-collect-app_F test fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30700

Bug ID: 30700
   Summary: tmpdir/gp-collect-app_F test fails
   Product: binutils
   Version: 2.41
Status: NEW
  Severity: normal
  Priority: P2
 Component: gprofng
  Assignee: vladimir.mezentsev at oracle dot com
  Reporter: sam at gentoo dot org
CC: doko at debian dot org
  Target Milestone: ---

Created attachment 15023
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15023=edit
gprofng.log

The 'tmpdir/gp-collect-app_F' test fails for me with binutils-2.41.

```
Running
/var/tmp/portage/sys-devel/binutils-2.41/work/binutils-2.41/gprofng/testsuite/gprofng.display/gp-collect-app_F.exp
...
mkdir -p tmpdir/gp-collect-app_F
% timeout 300 sh -c 'mkdir -p tmpdir/gp-collect-app_F' 2>&1
cd tmpdir/gp-collect-app_F && 
/var/tmp/portage/sys-devel/binutils-2.41/work/build/gprofng/src/gprofng collect
app -p on -a off -F 'off' -O exp.er  sh -c 'mkdir t && touch t/x; rm -rf t'
% timeout 300 sh -c 'cd tmpdir/gp-collect-app_F && 
/var/tmp/portage/sys-devel/binutils-2.41/work/build/gprofng/src/gprofng collect
app -p on -a off -F 'off' -O exp.er  sh -c 'mkdir t && touch t/x; rm -rf t' '
2>&1
find tmpdir/gp-collect-app_F -name '*x1.er' | wc -l
% timeout 300 sh -c 'find tmpdir/gp-collect-app_F -name '*x1.er' | wc -l' 2>&1
cd tmpdir/gp-collect-app_F && 
/var/tmp/portage/sys-devel/binutils-2.41/work/build/gprofng/src/gprofng collect
app -p on -a off -F 'on' -O exp.er  sh -c 'mkdir t && touch t/x; rm -rf t'
% timeout 300 sh -c 'cd tmpdir/gp-collect-app_F && 
/var/tmp/portage/sys-devel/binutils-2.41/work/build/gprofng/src/gprofng collect
app -p on -a off -F 'on' -O exp.er  sh -c 'mkdir t && touch t/x; rm -rf t' '
2>&1
find tmpdir/gp-collect-app_F -name '*x1.er' | wc -l
% timeout 300 sh -c 'find tmpdir/gp-collect-app_F -name '*x1.er' | wc -l' 2>&1
Test failed for -F on. subExp=1. Shold be 3
FAIL: tmpdir/gp-collect-app_F
testcase
/var/tmp/portage/sys-devel/binutils-2.41/work/binutils-2.41/gprofng/testsuite/gprofng.display/gp-collect-app_F.exp
completed in 1 seconds
```

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


[Bug binutils/30699] objcopy: '--only-keep-debug for ELF relocatables' test fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30699

Sam James  changed:

   What|Removed |Added

 CC||doko at debian dot org

--- Comment #1 from Sam James  ---
ccing doko as they hit it too at
https://inbox.sourceware.org/binutils/86e6e812-4968-cd28-0c1c-6a38a053c...@debian.org/

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


[Bug ld/30698] New: ld test 'Run pr23169b' fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30698

Bug ID: 30698
   Summary: ld test 'Run pr23169b' fails
   Product: binutils
   Version: 2.41
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: sam at gentoo dot org
  Target Milestone: ---

Created attachment 15021
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15021=edit
ld.log.xz

Originally reported downstream in Gentoo at https://bugs.gentoo.org/885617 but
I can reproduce it myself now.

```
$ grep FAIL: /var/tmp/portage/sys-devel/binutils-2.41/temp/build.log
FAIL: tmpdir/gp-collect-app_F
FAIL: --only-keep-debug for ELF relocatables
FAIL: Run pr23169b
```

(I'll file other bugs for the other 2 failures, so just worrying about 'Run
pr23169b' here.)

>From `ld.log`:
```
Running: tmpdir/pr23169b > tmpdir/pr23169b.out
tmpdir/pr23169b: IFUNC symbol 'func' referenced in 'tmpdir/libpr23169a.so' is
defined in the executable and creates an unsatisfiable circular dependency.
FAIL: Run pr23169b
x86_64-pc-linux-gnu-gcc 
-B/var/tmp/portage/sys-devel/binutils-2.41/work/build/ld/tmpdir/ld/
-I/var/tmp/portage/sys-devel/binutils-2.41/work/binutils-2.41/ld/testsuite/ld-ifunc
-g -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches
-Wreturn-type -ggdb3   -c -fno-lto -fPIE -O2 -g -c
/var/tmp/portage/sys-devel/binutils-2.41/work/binutils-2.41/ld/testsuite/ld-ifunc/pr23169b.c
-o tmpdir/pr23169b.o
```

```
$ ld.so --version | head -1
ld.so (Gentoo 2.37-r4 (patchset 6)) stable release version 2.37.
```

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


[Bug binutils/30699] New: objcopy: '--only-keep-debug for ELF relocatables' test fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30699

Bug ID: 30699
   Summary: objcopy: '--only-keep-debug for ELF relocatables' test
fails
   Product: binutils
   Version: 2.41
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: sam at gentoo dot org
  Target Milestone: ---

Created attachment 15022
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15022=edit
binutils.log.xz

The '--only-keep-debug for ELF relocatables' binutils/objcopy test fails for me
with binutils-2.41.

```
$ grep -rsin ^FAIL /var/tmp/portage/sys-devel/binutils-2.41/temp/build.log
12755:FAIL: tmpdir/gp-collect-app_F
12819:FAIL: --only-keep-debug for ELF relocatables
13115:FAIL: Run pr23169b
```

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


[Bug ld/30698] ld test 'Run pr23169b' fails

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30698

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=23169
 CC||toolchain at gentoo dot org

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


[Bug ld/23169] IFUNC pointer should be allowed in executable

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23169

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=30698

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


[Bug ld/29956] mn10300 linker always triggers LOAD segment with RWX permissions test by default

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29956

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/29958] frv linker always triggers LOAD segment with RWX permissions test by default

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29958

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/20025] Warn by default about executable stacks

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20025

Sam James  changed:

   What|Removed |Added

Version|unspecified |2.38

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


[Bug ld/20025] Warn by default about executable stacks

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20025

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug binutils/23070] mipsel-linux-gnu ld testsuite failure for "DT_TEXTREL map file warning"

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23070

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/29955] microblaze linker always triggers LOAD segment with RWX permissions test by default

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29955

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/29072] ld silently make the program stack area executable if nested function is used

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29072

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=20025

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


[Bug ld/20025] Warn by default about executable stacks

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20025

Sam James  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED
   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=29072

--- Comment #3 from Sam James  ---
I think this is fixed from the changes in PR29072, especially e.g.
https://sourceware.org/bugzilla/show_bug.cgi?id=29072#c11.

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


[Bug ld/30607] [2.41 Regression] several regressions for mipsen targets

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30607

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug binutils/15545] BFD cache modifies cacheable flag

2023-07-30 Thread tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=15545

Tom Tromey  changed:

   What|Removed |Added

 CC||tromey at sourceware dot org

--- Comment #3 from Tom Tromey  ---
I forgot entirely about this bug.

One option might be to save the mode so that the cache
can properly reopen all closed fds.  That seems safe given
your concerns about changing an exported function, because
right now this is just an failure scenario.  That is, it
seems unlikely and/or absurd for a BFD client to depend on 
this behavior.

Another option might be to add a new API that doesn't carry
this baggage.

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


[Bug ld/20025] Warn by default about executable stacks

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20025

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.38

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


[Bug ld/20360] DT_TEXTREL appearing in output with no textrels on x86_64

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20360

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug ld/29411] ld warning on SPARC: LOAD segment with RWX permissions

2023-07-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29411

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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