bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28410] Prevent region check failures when relaxation is not fina


From: nelsonc1225 at sourceware dot org
Subject: [Bug ld/28410] Prevent region check failures when relaxation is not final
Date: Sat, 02 Oct 2021 02:15:56 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28410

--- Comment #1 from Nelson Chu <nelsonc1225 at sourceware dot org> ---
Consider the testcase in the attached,

nelson@LAPTOP-QFSGI1F2:~/test$ cat align.s
 .section .entry, "xa"
 .align 5
 .globl _start
 .type _start, @function
_start:
 tail _start
 .size _start, . - _start

nelson@LAPTOP-QFSGI1F2:~/test$ cat align.ld
MEMORY
{
 reset : ORIGIN = 0x0, LENGTH = 32
}

SECTIONS
{
 .entry :
 {
 KEEP (*(.entry))
 } > reset
}
nelson@LAPTOP-QFSGI1F2:~/test$
~/binutils-dev/build-elf64-upstream/build-install/bin/riscv64-unknown-elf-as
align.s -o align.o

nelson@LAPTOP-QFSGI1F2:~/test$
~/binutils-dev/build-elf64-upstream/build-install/bin/riscv64-unknown-elf-ld
-Talign.ld align.o
/home/nelson/binutils-dev/build-elf64-upstream/build-install/bin/riscv64-unknown-elf-ld:
a.out section `.entry' will not fit in region `reset'

nelson@LAPTOP-QFSGI1F2:~/test$
~/binutils-dev/build-elf64-upstream/build-install/bin/riscv64-unknown-elf-ld
align.o
nelson@LAPTOP-QFSGI1F2:~/test$ echo $?
0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]