[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30944] LoongArch linker relaxation support breaks .balign
From: |
icenowy at aosc dot io |
Subject: |
[Bug ld/30944] LoongArch linker relaxation support breaks .balign |
Date: |
Fri, 06 Oct 2023 07:20:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30944
--- Comment #2 from Icenowy Zheng <icenowy at aosc dot io> ---
The new code used to reproduce the ld issue is here:
```
.text
.balign 256
func1:
la.global $a0,exit
nop
.word 0x12345678
.word 0x0
.balign 256
func2:
la.global $a0,exit
nop
.word 0x12345678
.word 0x0
```
Build it with: (assume it's saved as test.s)
```
# as test.s -o test.o
# ld test.o -shared
```
On my setup with binutils 2.41 native, I got func1 @ 0x2fc and func2 @ 0x40c,
both are not properly aligned.
--
You are receiving this mail because:
You are on the CC list for the bug.