Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
cross-spu-binutils.23142
binutils-revert-nm-symversion.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File binutils-revert-nm-symversion.diff of Package cross-spu-binutils.23142
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. Index: binutils-2.37/binutils/nm.c =================================================================== --- binutils-2.37.orig/binutils/nm.c +++ binutils-2.37/binutils/nm.c @@ -183,7 +183,7 @@ static int show_version = 0; /* Show the static int show_synthetic = 0; /* Display synthesized symbols too. */ static int line_numbers = 0; /* Print line numbers for symbols. */ static int allow_special_symbols = 0; /* Allow special symbols. */ -static int with_symbol_versions = -1; /* Output symbol version information. */ +static int with_symbol_versions = 0; /* Output symbol version information. */ static int quiet = 0; /* Suppress "no symbols" diagnostic. */ /* The characters to use for global and local ifunc symbols. */ Index: binutils-2.37/ld/testsuite/ld-elf/shared.exp =================================================================== --- binutils-2.37.orig/ld/testsuite/ld-elf/shared.exp +++ binutils-2.37/ld/testsuite/ld-elf/shared.exp @@ -938,8 +938,7 @@ run_cc_link_tests [list \ "-fPIC" \ {pr26302b.c} \ {{readelf {-sW} pr26302.rd} \ - {nm {-u} pr26302.nd} \ - {nm {-u -D} pr26302.nd} \ + {nm {-u --with-symbol-versions} pr26302.nd} \ {nm {-u -D --with-symbol-versions} pr26302.nd}} \ "pr26302b.so" \ ] \ Index: binutils-2.37/gas/testsuite/gas/symver/symver0.d =================================================================== --- binutils-2.37.orig/gas/testsuite/gas/symver/symver0.d +++ binutils-2.37/gas/testsuite/gas/symver/symver0.d @@ -1,4 +1,4 @@ -#nm: -n +#nm: -n --with-symbol-versions #name: symver symver0 # # The #... and #pass are there to match extra symbols inserted by Index: binutils-2.37/gas/testsuite/gas/symver/symver1.d =================================================================== --- binutils-2.37.orig/gas/testsuite/gas/symver/symver1.d +++ binutils-2.37/gas/testsuite/gas/symver/symver1.d @@ -1,4 +1,4 @@ -#nm: -n +#nm: -n --with-symbol-versions #name: symver symver1 # # The #... and #pass are there to match extra symbols inserted by Index: binutils-2.37/gas/testsuite/gas/symver/symver6.d =================================================================== --- binutils-2.37.orig/gas/testsuite/gas/symver/symver6.d +++ binutils-2.37/gas/testsuite/gas/symver/symver6.d @@ -1,4 +1,4 @@ -#nm: -n +#nm: -n --with-symbol-versions #name: symver symver6 #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor