[Bug gas/31178] [2.42 regression] Crash when building Valgrind tests (Internal error in build_vex_prefix in tc-i386.c:376)

2024-01-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31178

--- Comment #6 from Sourceware Commits  ---
The master branch has been updated by Jan Beulich :

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

commit 7440781b67631ebdf1b0587724f5d77c3748b034
Author: Jan Beulich 
Date:   Tue Jan 9 13:49:48 2024 +0100

x86: FMA insns aren't eligible to VEX2 encoding

PR gas/31178

In da0784f961d8 ("x86: fold FMA VEX and EVEX templates") I overlooked
that C aliases StaticRounding, and hence build_vex_prefix() now needs to
be aware of that aliasing. Disambiguation is easy, as StaticRounding is
only ever used together with SAE (hence why the overlaying works in the
first place).

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


[Bug gas/31178] [2.42 regression] Crash when building Valgrind tests (Internal error in build_vex_prefix in tc-i386.c:376)

2024-01-09 Thread jbeulich at suse dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31178

Jan Beulich  changed:

   What|Removed |Added

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

--- Comment #7 from Jan Beulich  ---
And thus fixed.

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


[Bug ld/31047] relocation R_X86_64_NONE against absolute symbol `__dtrace_test_prov___place' in section `.text.startup' is disallowed

2024-01-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31047

--- Comment #3 from H.J. Lu  ---
[hjl@gnu-cfl-3 pr31047]$ cat x.s 
.text
.globl _start
_start:
.nop
.reloc 0, BFD_RELOC_NONE, foo
.section .note.GNU-stack,"",@progbits
[hjl@gnu-cfl-3 pr31047]$ cat y.s
.globl foo
foo = 0x1000
.section .note.GNU-stack,"",@progbits
[hjl@gnu-cfl-3 pr31047]$ make
as   -o y.o y.s
as   -o x.o x.s
./ld -pie -o x y.o x.o
./ld: x.o: relocation R_X86_64_NONE against absolute symbol `foo' in section
`.text' is disallowed
make: *** [Makefile:13: x] Error 1

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


[Bug ld/31047] relocation R_X86_64_NONE against absolute symbol `__dtrace_test_prov___place' in section `.text.startup' is disallowed

2024-01-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31047

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

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

commit 2e93abb858ae4ff2b8605b4a94988068869c0ff1
Author: H.J. Lu 
Date:   Tue Jan 9 06:30:28 2024 -0800

x86: Don't check R_386_NONE nor R_X86_64_NONE

Update x86 ELF linker to skip R_386_NONE/R_X86_64_NONE when scanning
relocations.

bfd/

* PR ld/31047
* elf32-i386.c (elf_i386_scan_relocs): Don't check R_386_NONE.
* elf64-x86-64.c (elf_x86_64_scan_relocs): Don't check
R_X86_64_NONE.

ld/

* PR ld/31047
* testsuite/ld-i386/i386.exp: Run PR ld/31047 test.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr31047.d: New file.
* testsuite/ld-x86-64/pr31047-x32.d: Likewise.
* testsuite/ld-x86-64/pr31047.d: Likewise.
* testsuite/ld-x86-64/pr31047a.s: Likewise.
* testsuite/ld-x86-64/pr31047b.s: Likewise.

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


[Bug ld/31047] relocation R_X86_64_NONE against absolute symbol `__dtrace_test_prov___place' in section `.text.startup' is disallowed

2024-01-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31047

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED
   Target Milestone|--- |2.42

--- Comment #5 from H.J. Lu  ---
Fixed for 2.42.

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


[Bug ld/31216] On aarch64 several sections are unnecessarily mapped to segment with executable rights

2024-01-09 Thread marcin.godlewski at onet dot pl
https://sourceware.org/bugzilla/show_bug.cgi?id=31216

--- Comment #6 from Marcin Godlewski  ---
Just wanted to correct myself, not to mislead anyone reading. With lld, by
default, although executable sections are mapped to a separate segment, the
executable segment mapping may still contain content of adjacent sections in
runtime as they share the page-sized chunk of the executable file. In order to
avoid this, -zseparate-code is required, similarly as for GNU ld.

Program Headers:
  Type   Offset   VirtAddr   PhysAddr   FileSiz  MemSiz
  Flg Align
  PHDR   0x40 0x0040 0x0040 0x000268
0x000268 R   0x8
  INTERP 0x0002a8 0x02a8 0x02a8 0x1b
0x1b R   0x1
  [Requesting program interpreter: /lib/ld-linux-aarch64.so.1]
  LOAD   0x00 0x 0x 0x000704
0x000704 R   0x1
  LOAD   0x01 0x0001 0x0001 0x0001d0
0x0001d0 R E 0x1
  LOAD   0x02 0x0002 0x0002 0x000228
0x000228 RW  0x1
  LOAD   0x020228 0x00030228 0x00030228 0x10
0x11 RW  0x1
  DYNAMIC0x020010 0x00020010 0x00020010 0x0001b0
0x0001b0 RW  0x8
  GNU_RELRO  0x02 0x0002 0x0002 0x000228
0x001000 R   0x1
  GNU_EH_FRAME   0x0005f8 0x05f8 0x05f8 0x3c
0x3c R   0x4
  GNU_STACK  0x00 0x 0x 0x00
0x00 RW  0
  NOTE   0x0002c4 0x02c4 0x02c4 0x38
0x38 R   0x4

 Section to Segment mapping:
  Segment Sections...
   00 
   01 .interp 
   02 .interp .note.ABI-tag .note.gnu.build-id .dynsym .gnu.version
.gnu.version_r .gnu.hash .dynstr .rela.dyn .rela.plt .rodata .eh_frame_hdr
.eh_frame 
   03 .text .init .fini .plt 
   04 .fini_array .init_array .dynamic .got .got.plt 
   05 .data .bss 
   06 .dynamic 
   07 .fini_array .init_array .dynamic .got .got.plt 
   08 .eh_frame_hdr 
   09 
   10 .note.ABI-tag .note.gnu.build-id

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


[Bug ld/30824] BFD (GNU Binutils) 2.41 internal error, aborting at elf64-ppc.c:17531 in ppc64_elf_relocate_section

2024-01-09 Thread mtarsel at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30824

Mick Tarsel  changed:

   What|Removed |Added

 CC||mtarsel at redhat dot com

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