[Bug ld/30791] Do not merge sections with same name and SHF_LINK_ORDER, but different sh_link value

2023-08-31 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30791

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

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

commit 12123021f11c2d4b0b827e18a10498494046dd65
Author: H.J. Lu 
Date:   Thu Aug 31 08:38:10 2023 -0700

elf: Adjust PR ld/30791 tests

Adjust PR ld/30791 tests:

1. Generic linker targets don't comply with all orhpan section merging
rules.
2. z80 fails since a, b, c, d are registers for z80.
3. hppa fails since .text sections aren't merged for relocatable link.

PR ld/30791
* testsuite/ld-elf/pr30791a.d: Xfail for generic and z80
targets.
* testsuite/ld-elf/pr30791b.d: Xfail for hppa and z80 targets.

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


[Bug ld/30791] Do not merge sections with same name and SHF_LINK_ORDER, but different sh_link value

2023-08-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30791

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
   Target Milestone|--- |2.42
Version|unspecified |2.41
 Resolution|--- |FIXED

--- Comment #3 from H.J. Lu  ---
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=68a2d9bf874643da970fe945a9c60c397f6882ad

commit 68a2d9bf874643da970fe945a9c60c397f6882ad
Author: H.J. Lu 
Date:   Wed Aug 30 10:24:56 2023 -0700

elf: Don't merge sections with different SHF_LINK_ORDER

For relocatable link, don't merge 2 SHF_LINK_ORDER sections if output
sections of their linked to sections are different.

* ldelf.c (elf_orphan_compatible): Don't merge sections with
different SHF_LINK_ORDER.
* testsuite/ld-elf/pr30791a.d: New file.
* testsuite/ld-elf/pr30791a.s: Likewise.
* testsuite/ld-elf/pr30791b.d: Likewise.
* testsuite/ld-elf/pr30791b.s: Likewise.
* testsuite/ld-elf/pr30791c.s: Likewise.
* testsuite/ld-elf/pr30791d.s: Likewise.

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


[Bug ld/30791] Do not merge sections with same name and SHF_LINK_ORDER, but different sh_link value

2023-08-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30791

H.J. Lu  changed:

   What|Removed |Added

   Last reconfirmed||2023-08-30
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #2 from H.J. Lu  ---
A patch is posted at

https://sourceware.org/pipermail/binutils/2023-August/129305.html

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


[Bug ld/30791] Do not merge sections with same name and SHF_LINK_ORDER, but different sh_link value

2023-08-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30791

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

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


[Bug ld/30791] Do not merge sections with same name and SHF_LINK_ORDER, but different sh_link value

2023-08-29 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30791

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/30791] Do not merge sections with same name and SHF_LINK_ORDER, but different sh_link value

2023-08-29 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30791

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

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

commit a422bb9db1a432f6094a186e243717512d50eec9
Author: Alan Modra 
Date:   Wed Aug 30 10:45:03 2023 +0930

Re: readelf/objdump: Handle DWARF info with mixed types of range section

PR 30791
* dwarf.c (free_debug_information): Free range_versions.

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