mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
bf89386a86
In embedded environments, including boot loaders, the non-PIC executable needs to export its symbols to modules loaded in the future. We should always create dynamic sections for -E/--dynamic-list. bfd/ PR ld/19617 * elflink.c (elf_link_add_object_symbols): Always create dynamic sections for -E/--dynamic-list. ld/ PR ld/19617 * testsuite/ld-elf/pr19617.s: New file. * testsuite/ld-elf/pr19617a.d: Likewise. * testsuite/ld-elf/pr19617b.d: Likewise. * testsuite/ld-elf/pr19617c.d: Likewise.
20 lines
260 B
ArmAsm
20 lines
260 B
ArmAsm
.data
|
|
.global bar
|
|
bar:
|
|
.type bar,"object"
|
|
.long 0
|
|
.text
|
|
.type start,"function"
|
|
.global start
|
|
start:
|
|
.type _start,"function"
|
|
.global _start
|
|
_start:
|
|
.type __start,"function"
|
|
.global __start
|
|
__start:
|
|
.type main,"function"
|
|
.global main
|
|
main:
|
|
.long 0
|