mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
aa0587b290
Since gcc commit, 3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf, we now enable elf attributes for all riscv targets by default in gcc. Therefore, I think binutils should have the same behavior, in case users are writing assembly files. If --enable-default-riscv-attribute isn't set, then we enable the elf attributes for all riscv targets by default. ChangLog: binutils/ * testsuite/binutils-all/readelf.s: Add comments for riscv. * testsuite/binutils-all/readelf.s-64: Likewise. * testsuite/binutils-all/readelf.s-64-unused: Likewise. * testsuite/binutils-all/readelf.ss: Likewise. * testsuite/binutils-all/readelf.ss-64: Likewise. * testsuite/binutils-all/readelf.ss-64-unused: Likewise. gas/ * configure.ac: If --enable-default-riscv-attribute isn't set, then we enable the elf attributes for all riscv targets by default. * configure: Regenerated.
19 lines
824 B
Scheme
19 lines
824 B
Scheme
|
|
Symbol table '.symtab' contains .* entries:
|
|
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
|
|
+0: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +UND
|
|
+1: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +1 static_text_symbol
|
|
# ARM targets add the $d mapping symbol here...
|
|
# NDS32 targets add the $d2 mapping symbol here...
|
|
#...
|
|
+.: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +[34] static_data_symbol
|
|
# v850 targets include extra SECTION symbols here for the .call_table_data
|
|
# and .call_table_text sections.
|
|
# riscv targets add .riscv.attribute symbol here...
|
|
#...
|
|
+[0-9]+: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 text_symbol
|
|
+[0-9]+: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND external_symbol
|
|
+[0-9]+: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +[34] data_symbol
|
|
+[0-9]+: 00000004 +4 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(COM|ANSI_COM) common_symbol
|
|
#...
|