mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
106791196f
The discard of symbols should be performed whether the warning for the discard is enabled or not. Without this patch, ld would segfault in bfd_section_removed_from_list, called in the if-statement right after this block, as the argument isec->output_section can be NULL. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
17 lines
267 B
ArmAsm
17 lines
267 B
ArmAsm
.global MY_BUF
|
|
.section .bss.MY_BUF,"aw",%nobits
|
|
.type MY_BUF, %object
|
|
.size MY_BUF, 102400
|
|
MY_BUF:
|
|
.space 102400
|
|
|
|
.section .text.foo,"ax",%progbits
|
|
.global foo
|
|
.type foo, %function
|
|
foo:
|
|
ldr r0, .L3
|
|
bx lr
|
|
.L3:
|
|
.word MY_BUF
|
|
.size foo, .-foo
|