[Bug ld/30924] ld testsuite: 'Version' pattern grabs 'Version5 EABI', breaking test on arm-linux-musleabihf

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30924

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.42

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


[Bug ld/30925] ld testsuite: pr22001-1 test segfaults on musl/x86

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30925

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.42

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


[Bug ld/30918] ld testsuite: non-PIC shared tests fail on powerpc-linux-musl

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30918

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.42

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


[Bug ld/30917] ld testsuite: glibc-specific DT_RELR tests should not be run on musl systems

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30917

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.42

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


[Bug binutils/30916] addr2line testsuite fails when targeting PowerPC 64 big-endian with ELFv2 ABI

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30916

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.42

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


[Bug ld/30905] ld: Test case pr28158 fails on x86_64-linux-musl when index is > 19

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30905

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.42
 CC||sam at gentoo dot org

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


[Bug gprofng/30894] bison should be no hard dependency

2023-10-05 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30894

Vladimir Mezentsev  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #2 from Vladimir Mezentsev  
---
Update status as resolved/fixed.

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


[Bug ld/30940] alpha: ld segfaults in

2023-10-05 Thread mcree at orcon dot net.nz
https://sourceware.org/bugzilla/show_bug.cgi?id=30940

--- Comment #2 from Michael Cree  ---
Thanks, tried with the patch.  Linking succeeds with no warning messages. Built
package went on to complete test suite with no failure so resultant executable
appears to work.

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


[Bug binutils/30376] windres cannot parse rc files which it itself generated

2023-10-05 Thread pali at kernel dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30376

--- Comment #13 from Pali Rohár  ---
Ok, if it is not possible to fix this particular case then it would be useful
to document this incompatibility with MS RC format. I can understand that
rewriting the whole parser is not something which is going to happen just
because of this issue. Also it could be useful if instead of the generic
message "syntax error" is printed some more describing message like "MS-style
double quotes are not supported" but I can imagine that the whole error message
processing is part of the parser and hence even this is not possible to fix. So
documentation change is the best fix there.

And what about other issues described in comment #6?

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


[Bug gprofng/30894] bison should be no hard dependency

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30894

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Vladimir Mezentsev
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e5b3bfa519a9704288219d09fef1a792663351c0

commit e5b3bfa519a9704288219d09fef1a792663351c0
Author: Vladimir Mezentsev 
Date:   Tue Oct 3 23:53:01 2023 -0700

gprofng: 30894 bison should be no hard dependency

When running from a distribution tarball, bison should not be necessary.
The generated files (QLParser.tab.cc, QLParser.tab.hh) should be
distributed.
configure.ac should not abort if bison is missing.
configure.ac should remove temporary files (dummy.c, Simple.class).
bison must be run once to create QLParser.tab.cc and QLParser.tab.hh.

gprofng/ChangeLog
2023-10-03  Vladimir Mezentsev  

PR gprofng/30894
* configure.ac: Don't abort if bison is missing. Remove temporary
files.
* src/Makefile.am: Distribute QLParser.tab.cc and QLParser.tab.hh.
* Run bison once to create QLParser.tab.cc and QLParser.tab.hh.
* configure: Rebuild.
* src/Makefile.in: Rebuild.

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


[Bug ld/30944] LoongArch linker relaxation support in GAS breaks .balign

2023-10-05 Thread icenowy at aosc dot io
https://sourceware.org/bugzilla/show_bug.cgi?id=30944

Icenowy Zheng  changed:

   What|Removed |Added

  Component|gas |ld

--- Comment #1 from Icenowy Zheng  ---
Sorry for disturbance here, the misaligned symbols in the .o file is expected;
however ld is expected to re-align it, which failed in the case of libglvnd.

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


[Bug ld/30930] ld-2.41 links mame in a way which gets stuck on aarch64

2023-10-05 Thread nsz at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30930

Szabolcs Nagy  changed:

   What|Removed |Added

   Last reconfirmed||2023-10-05
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #22 from Szabolcs Nagy  ---
i can confirm the issue, not yet sure what's going on.

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


[Bug binutils/30903] nm: heap-buffer-overflow at bfd/bfd.c:2677 in bfd_demangle

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30903

Nick Clifton  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||nickc at redhat dot com
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Nick Clifton  ---
Hi 曾信彥 ,

  This bug has already been fixed.

Cheers
  Nick

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


[Bug binutils/30904] nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30904

Nick Clifton  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||nickc at redhat dot com
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Nick Clifton  ---
Hi 曾信彥 

  Thanks for reporting this bug.  There was a silly typo in the sources where a
check was meant to catch an allocation requires for an array returning NULL,
but instead it tested an already allocated pointer.

  Fixed with a simple patch.

Cheers
  Nick

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


[Bug binutils/30904] nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30904

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=345309aadd64b701426fe3b4f4184ae689feef06

commit 345309aadd64b701426fe3b4f4184ae689feef06
Author: Nick Clifton 
Date:   Thu Oct 5 15:27:47 2023 +0100

Fix: nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols

  PR 30904
  * elf.c (_bfd_elf_get_dynamic_symbols): Fix typo when checking to see if
the gnuchains array has been successfully created.

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


[Bug ld/30905] ld: Test case pr28158 fails on x86_64-linux-musl when index is > 19

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30905

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Patch approved and applied - thanks!

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


[Bug ld/30905] ld: Test case pr28158 fails on x86_64-linux-musl when index is > 19

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30905

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1499719e6d7a556025b5c95956434f9047b8b83c

commit 1499719e6d7a556025b5c95956434f9047b8b83c
Author: A. Wilcox 
Date:   Thu Oct 5 15:05:15 2023 +0100

Fix: ld: Test case pr28158 fails on x86_64-linux-musl when index is > 19

  PR 30905
  * testsuite/ld-elf/pr28158.rd: Adjust regexp to allow for section
indicies larger than 9.

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


[Bug binutils/30916] addr2line testsuite fails when targeting PowerPC 64 big-endian with ELFv2 ABI

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30916

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #2 from Nick Clifton  ---
Patch applied - thanks.

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


[Bug binutils/30916] addr2line testsuite fails when targeting PowerPC 64 big-endian with ELFv2 ABI

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30916

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0

commit c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0
Author: A. Wilcox 
Date:   Thu Oct 5 14:49:51 2023 +0100

Fix: addr2line testsuite fails when targeting PowerPC 64 big-endian with
ELFv2 ABI

  PR 30916
  * testsuite/binutils-all/addr2line.exp: Do not use PowerPC specific
options when working with a MUSL target.

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


[Bug gas/30944] New: LoongArch linker relaxation support in GAS breaks .balign

2023-10-05 Thread icenowy at aosc dot io
https://sourceware.org/bugzilla/show_bug.cgi?id=30944

Bug ID: 30944
   Summary: LoongArch linker relaxation support in GAS breaks
.balign
   Product: binutils
   Version: 2.41
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: icenowy at aosc dot io
  Target Milestone: ---

The following assembly code:

```
.text
.balign 256
func1:
la.global $a0,exit
nop
nop
nop

.balign 256
func2:
la.global $a0,exit
nop
nop
nop
```

Surely we expect func1 @ 0x0 and func2 @ 0x100, however when assembled with no
extra options with GAS 2.41, func1 is @ 0xfc and func2 0x20c.

Add `-mno-relax` option to GAS could workaround this.

This leads to miscompilation of
https://github.com/NVIDIA/libglvnd/blob/master/src/GLdispatch/vnd-glapi/entry_loongarch64_tsd.c
(which emits thousands of function thunks .baligned to 256B, and referenced by
the index at runtime), and leads to broken GL and thus broken desktop.

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


[Bug ld/30917] ld testsuite: glibc-specific DT_RELR tests should not be run on musl systems

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30917

Nick Clifton  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Patch applied - thanks!

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


[Bug ld/30917] ld testsuite: glibc-specific DT_RELR tests should not be run on musl systems

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30917

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8838ac1c9e05baa269fb50ebaa3318925b4df55b

commit 8838ac1c9e05baa269fb50ebaa3318925b4df55b
Author: A. Wilcox 
Date:   Thu Oct 5 14:26:32 2023 +0100

Fix: ld testsuite: glibc-specific DT_RELR tests should not be run on musl
systems

  PR 30917
  * testsuite/ld-elf/dt-relr.exp: Skip for MUSL targets.

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


[Bug gprofng/30896] gprofng display text: please provide a way (or document how) to include the object name next to the called functions

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30896

Ruud van der Pas  changed:

   What|Removed |Added

   Priority|P2  |P3
 CC||ruud.vanderpas at oracle dot 
com

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


[Bug gprofng/30896] gprofng display text: please provide a way (or document how) to include the object name next to the called functions

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30896

--- Comment #4 from Ruud van der Pas  ---
This is indeed confusing. The keyword "name" in a metrics definition is
different than the "-name" option.

As was pointed out in Bugzilla 30898, this is the correct way to include the
object name:

$ gprofng display text -name short:soname -metrics e.%totalcpu:name

For example:

$ gprofng display text -name short:soname -metrics e.%totalcpu:name
-functions experiment.2.thr.er

Current metrics: e.%totalcpu:name
Current Sort Metric: Exclusive Total CPU Time ( e.%totalcpu )
Functions sorted by metric: Exclusive Total CPU Time

Excl. TotalName
CPU
 sec.  %
1.861 100.00[]
1.771  95.16   mxv_core []
0.050   2.69   drand48 []
0.020   1.08   erand48_r []
0.020   1.08   init_data []
0.  0. @0x1de20  []
0.  0. __libc_start_call_main []
0.  0. __libc_start_main_impl []
0.  0. main []
0.  0. start_thread []

$

I will add a clarification and example to the documentation.

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


[Bug gprofng/30898] consider multi-threading for gprofng display text

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30898

Ruud van der Pas  changed:

   What|Removed |Added

 CC||ruud.vanderpas at oracle dot 
com

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


[Bug gprofng/30898] consider multi-threading for gprofng display text

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30898

Ruud van der Pas  changed:

   What|Removed |Added

   Priority|P2  |P3
   Assignee|ruud.vanderpas at oracle dot com   |vladimir.mezentsev at 
oracle dot c
   ||om

--- Comment #4 from Ruud van der Pas  ---
I think there are several issues brought up in this RFE. It will be cleaner and
easier to submit patches for, if we split this RFE into several others.

This is why I have created two RFEs for "display html" and cross referenced
them: 30942 and 30943.

We can then keep this one for the "display text" related performance issues
mentioned.

I have also changed this RFE from P2 to P3, and re-assigned it to Vladimir,
since he is the lead maintainer for "display text".

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


[Bug gprofng/30898] consider multi-threading for gprofng display text

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30898

Ruud van der Pas  changed:

   What|Removed |Added

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

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


[Bug gprofng/30943] [display html] Do not generate disassembly by default

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30943

Ruud van der Pas  changed:

   What|Removed |Added

   Assignee|vladimir.mezentsev at oracle dot c |ruud.vanderpas at 
oracle dot com
   |om  |
   Priority|P2  |P3
 CC||ruud.vanderpas at oracle dot 
com
   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=30898

--- Comment #1 from Ruud van der Pas  ---
I'm not sure that this is the right approach. Most performance analysts will
want to look at the disassembly at some point.

Instead, it will be better to explore opportunities to improve the performance.

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


[Bug gprofng/30943] New: [display html] Do not generate disassembly by default

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30943

Bug ID: 30943
   Summary: [display html] Do not generate disassembly by default
   Product: binutils
   Version: 2.41
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: gprofng
  Assignee: vladimir.mezentsev at oracle dot com
  Reporter: ruud.vanderpas at oracle dot com
  Target Milestone: ---

In Bugzilla 30898, John Doe reports the following:

"Maybe the default for "gprofng display html" should be to NOT include
disassembly (this may be a separate issue though)?"

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


[Bug gprofng/30942] [display html] Improve the performance

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30942

Ruud van der Pas  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

--- Comment #2 from Ruud van der Pas  ---
Apologies. The reference in the first comment should be to #30898.

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


[Bug ld/30918] ld testsuite: non-PIC shared tests fail on powerpc-linux-musl

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30918

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Patch approved and applied - thanks!

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


[Bug gprofng/30898] consider multi-threading for gprofng display text

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30898

Ruud van der Pas  changed:

   What|Removed |Added

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

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


[Bug gprofng/30942] [display html] Improve the performance

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30942

Ruud van der Pas  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=30898
   Assignee|vladimir.mezentsev at oracle dot c |ruud.vanderpas at 
oracle dot com
   |om  |
   Priority|P2  |P3
 CC||ruud.vanderpas at oracle dot 
com

--- Comment #1 from Ruud van der Pas  ---
Since "display html" is written in Perl, the code may not be as efficient as
"display text", which has been written in C/C++ and heavily optimized by the
compiler.

This does not mean there may not be room for source level performance
improvement(s). This case needs to be investigated and where possible,
improved.

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


[Bug ld/30918] ld testsuite: non-PIC shared tests fail on powerpc-linux-musl

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30918

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99b06f8a80cf81f34c5f9b3f8c0e69246f792317

commit 99b06f8a80cf81f34c5f9b3f8c0e69246f792317
Author: A. Wilcox 
Date:   Thu Oct 5 13:52:56 2023 +0100

Fix: ld testsuite: non-PIC shared tests fail on powerpc-linux-musl

  PR 30918
  * testsuite/ld-shared/shared.exp: Add XFAILs for tests that fail with the
MUSL library.

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


[Bug gprofng/30942] New: [display html] Improve the performance

2023-10-05 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30942

Bug ID: 30942
   Summary: [display html] Improve the performance
   Product: binutils
   Version: 2.41
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: gprofng
  Assignee: vladimir.mezentsev at oracle dot com
  Reporter: ruud.vanderpas at oracle dot com
  Target Milestone: ---

In Bugzilla 30989, John Doe reports the following:

"recording a sample program that uses lots of shared object files (most loaded
with dlopen) using "gprofng collect app" is quite fast; doing the "gprofng
display html" afterwards was... unexpected.


The first process took several minutes and wrote hundreds of MBs (mostly
disassembly) to disk
/tmp/install/bin/gp-display-text -limit 100 -viewmode machine -compare off
-script display.2.html/gp-script /tmp/binutils-2.41/build/test.2.er

The second process ran even much longer (actually I've killt it after taking a
single complete core for over 2 hours)

perl /tmp/install/bin/gp-display-html --whoami=gprofng display html test.2.er


Both processes ran on a single core, so the main question here is: is it
possible to use multiple cores for those tasks?"

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


[Bug ld/30923] ld testsuite: Thumb PLT and GOT tests should be skipped on musl armhf targets

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30923

Nick Clifton  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||nickc at redhat dot com
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Nick Clifton  ---
Patch applied - thanks!

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


[Bug ld/30923] ld testsuite: Thumb PLT and GOT tests should be skipped on musl armhf targets

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30923

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8023a054649541dfce3be99a5f84c8afb66f2c62

commit 8023a054649541dfce3be99a5f84c8afb66f2c62
Author: A. Wilcox 
Date:   Thu Oct 5 12:51:53 2023 +0100

Fix: ld testsuite: Thumb PLT and GOT tests should be skipped on musl armhf
targets

  PR 30923
  * testsuite/ld-arm/thumb-plt-got.d: Skip test for configurations using
the MUSL library.
  * testsuite/ld-arm/thumb-plt.d: Likewise.

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


[Bug ld/30940] alpha: ld segfaults in

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30940

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/30925] ld testsuite: pr22001-1 test segfaults on musl/x86

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30925

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=693ac69b4d41453f8876512780c35ba485f7c4a1

commit 693ac69b4d41453f8876512780c35ba485f7c4a1
Author: A. Wilcox 
Date:   Thu Oct 5 12:38:40 2023 +0100

Fix: ld testsuite: pr22001-1 test segfaults on musl/x86

  PR 30925
  PR 22001
  * testsuite/ld-i386/i386.exp: Skip the pr22001 test with TEXTREL
relocations enabled on configurations using the MUSL library.

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


[Bug ld/22001] -z nocopyreloc doesn't work right

2023-10-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22001

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/22001] -z nocopyreloc doesn't work right

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22001

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=693ac69b4d41453f8876512780c35ba485f7c4a1

commit 693ac69b4d41453f8876512780c35ba485f7c4a1
Author: A. Wilcox 
Date:   Thu Oct 5 12:38:40 2023 +0100

Fix: ld testsuite: pr22001-1 test segfaults on musl/x86

  PR 30925
  PR 22001
  * testsuite/ld-i386/i386.exp: Skip the pr22001 test with TEXTREL
relocations enabled on configurations using the MUSL library.

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


[Bug ld/30925] ld testsuite: pr22001-1 test segfaults on musl/x86

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30925

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #2 from Nick Clifton  ---
Patch applied.

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


[Bug ld/30924] ld testsuite: 'Version' pattern grabs 'Version5 EABI', breaking test on arm-linux-musleabihf

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30924

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
 CC||nickc at redhat dot com

--- Comment #3 from Nick Clifton  ---
Patch approved and applied.

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


[Bug ld/30924] ld testsuite: 'Version' pattern grabs 'Version5 EABI', breaking test on arm-linux-musleabihf

2023-10-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30924

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=41ef7afa97212aa219b90b72c4f363eac0aaae40

commit 41ef7afa97212aa219b90b72c4f363eac0aaae40
Author: A. Wilcox 
Date:   Thu Oct 5 12:13:08 2023 +0100

Fix: ld testsuite: 'Version' pattern grabs 'Version5 EABI', breaking test
on arm-linux-musleabihf

  PR 30924
  * testsuite/ld-elfvers/vers.exp (objdump_emptyverstuff): Handle EABI
version information in objdump's output.

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


[Bug ld/30915] ld testsuite: visibility incorrectly marked XFAIL on musl targets

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30915

--- Comment #3 from Nick Clifton  ---
Created attachment 15155
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15155=edit
Proposed patch

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


[Bug ld/30915] ld testsuite: visibility incorrectly marked XFAIL on musl targets

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30915

Nick Clifton  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
 CC||nickc at redhat dot com
 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2023-10-05
 Ever confirmed|0   |1

--- Comment #2 from Nick Clifton  ---
(In reply to A. Wilcox from comment #0)

> #if defined (__GLIBC__) && (__GLIBC__ > 2 \
> || (__GLIBC__ == 2 \
> &&  __GLIBC_MINOR__ >= 2))


> That is.. not a very helpful test for musl targets.  I don't know the best
> way forward for this.  There is no preprocessor macro test for musl targets,

Still ?  I would have thought that they had realized the problems that this
causes and changed their minds by now.


> so I would suggest something akin to changing the first line from:
> [...]

Given the other problems you found with making this change, I would suggest
that it would be safer to patch vsb.exp instead.   I am uploading a possible
fix, although you may need to to tweak it in order to get it to work.  (I do
not actually have a muscl installation with which I can test it).



> Similarly, for armv7, we have lines 104-111 testing whether non-PIC tests
> should XFAIL:

[This would have been better filed as a separate PR, even though it refers to
code in the same file.  But since you have filed it here...]

> 
> The unsupported relocation does happen but is not a fatal error so the test
> finds the matching regex line ("undefined reference to `visibility'") and
> XPASSes.

So if we make the warnings fatal then the test will work ?

So if you change:

if [run_host_cmd_yesno "$CC_FOR_TARGET" "$CFLAGS_FOR_TARGET -c
$tmpdir/movw-detect.c -o $tmpdir/movw-detect.o"] {

to:

if [run_host_cmd_yesno "$CC_FOR_TARGET" "$CFLAGS_FOR_TARGET
-Wl,--fatal-warnings -c $tmpdir/movw-detect.c -o $tmpdir/movw-detect.o"] {

then the test should now work ?

Cheers
  Nick

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


[Bug ld/30940] alpha: ld segfaults in

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30940

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Created attachment 15154
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15154=edit
Proposed patch

Hi Michael,

  Please try this patch.

  It should stop the segfault, but it will not fix the underlying problem of
the linker being unable to apply a relocation because it is being made against
a local symbol in a shared library.  That problem - I suspect - is due to how
the shared library is built.  I would expect that it needs to export that
symbol as a global symbol.  Of course this is just a guess as I have no way of
actually investigating in depth.

Cheers
  Nick

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


[Bug binutils/30376] windres cannot parse rc files which it itself generated

2023-10-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30376

--- Comment #12 from Nick Clifton  ---
(In reply to Nick Clifton from comment #10)
> (In reply to Pali Rohár from comment #7)

> I think the point that you are trying to make however is that the MS
> resource compiler actually includes the double quote characters as part of
> the resource names, correct ?  

I am sorry, I do not think that there is any way for windres to support MS
style quoted names without completely rewriting the parser.  It is possible to
have double quotes in names, but I suspect that the method is windres specific:

  """this_name_starts_and_ends_with_quotation_marks"""

Ie if you put "" inside a string that is enclosed in "..." marks, then the ""
is converted into a single " character and taken to be part of the name.

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