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