[Bug ld/31398] New: pr21964-4 fails on RISC-V with a default-pie compiler

2024-02-18 Thread xry111 at xry111 dot site
https://sourceware.org/bugzilla/show_bug.cgi?id=31398

Bug ID: 31398
   Summary: pr21964-4 fails on RISC-V with a default-pie compiler
   Product: binutils
   Version: 2.42
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: xry111 at xry111 dot site
  Target Milestone: ---

On RISC-V (lp64d), With GCC 13.2 configured with --enable-default-pie, one ld
test fails:

FAIL: Run pr21964-4

Forcing -fno-pie -no-pie makes it pass, but this test passes on various other
architectures even with default PIE.

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


[Bug ld/27597] nios: assertion fail in nios2_elf32_install_imm16

2024-02-18 Thread giulio.benetti at micronovasrl dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27597

--- Comment #7 from Giulio Benetti  ---
Backported, build-tested with binutils 2.39, 2.40 and 2.41 and it works
correctly.
Here is the patchset for Buildroot:
https://lore.kernel.org/buildroot/20240218184536.1922309-1-giulio.bene...@benettiengineering.com/T/#m385cbbc3f86ce8672ca6f654c665178fc754a358

Thanks again!

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


[Bug gas/31400] New: The third expression of .align

2024-02-18 Thread mengqinggang at loongson dot cn
https://sourceware.org/bugzilla/show_bug.cgi?id=31400

Bug ID: 31400
   Summary: The third expression of .align
   Product: binutils
   Version: 2.42
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: mengqinggang at loongson dot cn
  Target Milestone: ---

$ cat align.s
  1 ret
  2 .align 16, , 1
  3 ret
  4 .align 16, , -1
  5 ret
  6 .align 16, , -4294967295
  7 ret

$ as align.s
$ objdump -d a.out

On X86:
 <.text>:
   0:   c3  ret
   1:   c3  ret
   2:   66 66 2e 0f 1f 84 00data16 cs nopw 0x0(%rax,%rax,1)
   9:   00 00 00 00
   d:   0f 1f 00nopl   (%rax)
  10:   c3  ret
  11:   c3  ret

AArch64 has similar output:
 <.text>:
   0:   d65f03c0ret
   4:   d65f03c0ret
   8:   d503201fnop
   c:   d503201fnop
  10:   d65f03c0ret
  14:   d65f03c0ret

If the third parameter of .align is negative, should it be ignored?
But now there are different behaviors.


For llvm: if the third parameter is negative, it will cause an error.

# llvm-mc align.s -filetype=obj
align.s:4:14: error: alignment directive can never be satisfied in this many
bytes, ignoring maximum bytes expression
.align 16, , -1
 ^
align.s:6:14: error: alignment directive can never be satisfied in this many
bytes, ignoring maximum bytes expression
.align 16, , -4294967295
 ^

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


[Bug ld/27344] The --gdb-index linker flag is not documented

2024-02-18 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27344

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |NOTABUG

--- Comment #2 from Alan Modra  ---
gold's manpage (generated by help2man) does mention --gdb-index.

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