[Git][reproducible-builds/diffoscope][master] comparators/ar: use --print-armap long option with nm
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Thu Jul 17 15:40:59 UTC 2025
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
ffa385d3 by Siva Mahadevan at 2025-07-17T15:40:56+00:00
comparators/ar: use --print-armap long option with nm
- - - - -
2 changed files:
- diffoscope/comparators/ar.py
- tests/comparators/test_rlib.py
Changes:
=====================================
diffoscope/comparators/ar.py
=====================================
@@ -55,7 +55,7 @@ class ArContainer(LibarchiveContainer):
class ArSymbolTableDumper(Command):
@tool_required("nm")
def cmdline(self):
- return ["nm", "-s", self.path]
+ return ["nm", "--print-armap", self.path]
class ArFile(File):
=====================================
tests/comparators/test_rlib.py
=====================================
@@ -100,8 +100,8 @@ def test_num_items(differences):
@skip_unless_tools_exist("nm")
@skip_if_binutils_does_not_support_x86()
def test_item0_armap(differences):
- assert differences[0].source1 == "nm -s {}"
- assert differences[0].source2 == "nm -s {}"
+ assert differences[0].source1 == "nm --print-armap {}"
+ assert differences[0].source2 == "nm --print-armap {}"
expected_diff = get_data("rlib_armap_expected_diff")
assert differences[0].unified_diff == expected_diff
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/ffa385d336947526255335e31baef77977957404
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/ffa385d336947526255335e31baef77977957404
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20250717/ca053e56/attachment.htm>
More information about the rb-commits
mailing list