[Bug ld/32123] Linker should check all invalid @TLSCALL usage

2024-08-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32123

--- Comment #1 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

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

commit 67e30b15212adc1502b898a1ca224fdf65dc110d
Author: H.J. Lu 
Date:   Thu Aug 29 08:47:00 2024 -0700

x86: Check invalid TLS descriptor call

TLS descriptor call,

call *x@tlsdesc(%rax)

or

call *x@tlsdesc(%eax)

calls _dl_tlsdesc_return which expects that RAX/EAX points to the TLS
descriptor.  Update x86 linker to issue an error with or without TLS
transition.

bfd/

PR ld/32123
* elf32-i386.c (elf_i386_check_tls_transition): Move
R_386_TLS_DESC_CALL to ...
(elf_i386_tls_transition): Here.
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Move.
R_X86_64_TLSDESC_CALL check to ...
(elf_x86_64_tls_transition): Here.

ld/

PR ld/32123
* testsuite/ld-i386/i386.exp: Run tlsgdesc3.
* testsuite/ld-i386/tlsgdesc3.d: New file.
* testsuite/ld-x86-64/tlsdesc5.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run tlsdesc5.

Signed-off-by: H.J. Lu 

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


[Bug ld/32123] Linker should check all invalid @TLSCALL usage

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

H.J. Lu  changed:

   What|Removed |Added

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

--- Comment #2 from H.J. Lu  ---
Fixed for 2.44.

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


[Bug ld/27452] ld: Support compressing arbitrary sections (generalized --compress-debug-sections=)

2024-08-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27452

Sam James  changed:

   What|Removed |Added

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

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


[Bug libctf/32093] -Walloc-size warning in ctf-hash.c

2024-08-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32093

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Target Milestone|--- |2.44
 Resolution|--- |FIXED

--- Comment #2 from Alan Modra  ---
Fixed

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


[Bug binutils/31884] Compressed .strtab and .symtab

2024-08-30 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31884

Sam James  changed:

   What|Removed |Added

 CC||mark at klomp dot org,
   ||sam at gentoo dot org
   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=27452,
   ||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=29584

--- Comment #1 from Sam James  ---
In PR29584, mjw was keen on switching to making .gnu_debugdata a proper
SHF_COMPRESSED section.

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