forked from pool/binutils
f32da6f20f
* new .base64 pseudo-op, allowing base64 encoded data as strings * Intel APX: add support for CFCMOV, CCMP, CTEST, zero-upper, NF (APX_F now fully supported) * x86 Intel syntax now warns about more mnemonic suffixes * macros and .irp/.irpc/.rept bodies can use \+ to get at number of times the macro/body was executed * aarch64: support 'armv9.5-a' for -march, add support for LUT and LUT2 * s390: base register operand in D(X,B) and D(L,B) can now be omitted (ala 'D(X,)'); warn when register type doesn't match operand type (use option 'warn-regtype-mismatch=[strict|relaxed|no]' to adjust) * riscv: support various extensions: Zacas, Zcmp, Zfbfmin, Zvfbfmin, Zvfbfwma, Smcsrind/Sscsrind, XCvMem, XCvBi, XCvElw, XSfCease, all at version 1.0; remove support for assembly of privileged spec 1.9.1 (linking support remains) * arm: remove support for some old co-processors: Maverick and FPA * mips: '--trap' now causes either trap or breakpoint instructions to be emitted as per current ISA, instead of always using trap insn and failing when current ISA was incompatible with that * LoongArch: accept .option pseudo-op for fine-grained control of assembly code options; add support for DT_RELR * readelf: now displays RELR relocations in full detail; add -j/--display-section to show just those section(s) content according to their type * objdump/readelf now dump also .eh_frame_hdr (when present) when dumping .eh_frame * gprofng: add event types for AMD Zen3/Zen4 and Intel Ice Lake processors; add minimal support for riscv * linker: OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=471
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
Some packages of ours rely on the output of nm to not contain
|
|
symversions. E.g. perf uses 'nm -D' to construct a linker input
|
|
file with symbol names. ld errors on the '@' characters. Until
|
|
those packages are fixed we use this patch. We have to carry it
|
|
for old code streams forever.
|
|
|
|
diff --git a/binutils/nm.c b/binutils/nm.c
|
|
index 2637756c647..253714ef179 100644
|
|
--- a/binutils/nm.c
|
|
+++ b/binutils/nm.c
|
|
@@ -666,7 +666,7 @@ print_symname (const char *form, struct extended_symbol_info *info,
|
|
name = convert_utf8 (name);
|
|
}
|
|
|
|
- if (info != NULL && info->elfinfo && with_symbol_versions)
|
|
+ if (info != NULL && info->elfinfo && with_symbol_versions && 0)
|
|
{
|
|
const char *version_string;
|
|
bool hidden;
|
|
diff --git a/ld/testsuite/ld-elf/pr25708.d b/ld/testsuite/ld-elf/pr25708.d
|
|
index 60b8e31807a..1b62e25347e 100644
|
|
--- a/ld/testsuite/ld-elf/pr25708.d
|
|
+++ b/ld/testsuite/ld-elf/pr25708.d
|
|
@@ -2,8 +2,9 @@
|
|
#ld: -shared -version-script pr13195.t
|
|
#nm: -D --with-symbol-versions
|
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
|
-#xfail: hppa64-*-* ![check_shared_lib_support]
|
|
+#xfail: *-*-* ![check_shared_lib_support]
|
|
# h8300 doesn't support -shared, and hppa64 creates .foo
|
|
+# our binutils revert the printing of symversions with nm -D
|
|
|
|
#..
|
|
0+ A VERS_2.0
|