[Bug ld/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2023-01-03 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29939

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
   Target Milestone|--- |2.40

--- Comment #4 from H.J. Lu  ---
Fixed for 2.40 and 2.39 branch.

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


[Bug ld/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2023-01-03 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29939

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_39-branch branch has been updated by H.J. Lu
:

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

commit cab2aac95461f81ec8b22dcd65247531cbd2069c
Author: H.J. Lu 
Date:   Tue Dec 27 11:41:11 2022 -0800

x86-64: Allocate input section memory if needed

When --no-keep-memory is used, the input section memory may not be cached.
Allocate input section memory for -z pack-relative-relocs if needed.

bfd/

PR ld/29939
* elfxx-x86.c (elf_x86_size_or_finish_relative_reloc): Allocate
input section memory if needed.

ld/

PR ld/29939
* testsuite/ld-elf/dt-relr-2i.d: New test.

(cherry picked from commit 9eb71a53bf36a370e21a6fbbb21e2726f64b0fd0)

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


[Bug ld/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2022-12-27 Thread arsen at aarsen dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29939

--- Comment #2 from Arsen Arsenović  ---
Builds the original reproducer (webkitgtk), thanks!

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


[Bug ld/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2022-12-27 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29939

--- Comment #1 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=9eb71a53bf36a370e21a6fbbb21e2726f64b0fd0

commit 9eb71a53bf36a370e21a6fbbb21e2726f64b0fd0
Author: H.J. Lu 
Date:   Tue Dec 27 11:41:11 2022 -0800

x86-64: Allocate input section memory if needed

When --no-keep-memory is used, the input section memory may not be cached.
Allocate input section memory for -z pack-relative-relocs if needed.

bfd/

PR ld/29939
* elfxx-x86.c (elf_x86_size_or_finish_relative_reloc): Allocate
input section memory if needed.

ld/

PR ld/29939
* testsuite/ld-elf/dt-relr-2i.d: New test.

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


[Bug ld/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2022-12-27 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29939

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/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2022-12-24 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29939

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.