aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-22 00:10:32 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-22 00:15:04 -0400
commit511e721d08b415464ed6712efb67af24baa9d04f (patch)
tree9fd1749e9b212696f103f43c1cd6bdd945102251
parentlibsandbox: add renameat2 wrapper (diff)
downloadsandbox-511e721d08b415464ed6712efb67af24baa9d04f.tar.gz
sandbox-511e721d08b415464ed6712efb67af24baa9d04f.tar.bz2
sandbox-511e721d08b415464ed6712efb67af24baa9d04f.zip
libsandbox: use wide readelf output
Newer versions of binutils will truncate symbol output weirdly unless the --wide option is used. This manifests itself as libsandbox not including symbols when their name and symbol version is too long. The new removexattr symbol tests were failing because of this, but it seems the others were either not too long, or we didn't have any test coverage for them (oops). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libsandbox/local.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/local.mk b/libsandbox/local.mk
index 58e597a..86a7d44 100644
--- a/libsandbox/local.mk
+++ b/libsandbox/local.mk
@@ -58,11 +58,11 @@ SB_AWK = LC_ALL=C $(AWK) -v SYMBOLS_LIST="$(SYMBOLS_LIST)" -v srcdir="$(top_srcd
%D%/libsandbox.map: $(SYMBOLS_FILE) $(GEN_VERSION_MAP_SCRIPT)
@$(MKDIR_P) %D%
- $(AM_V_GEN)$(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_VERSION_MAP_SCRIPT) > $@
+ $(AM_V_GEN)$(READELF) -sW $(LIBC_PATH) | $(SB_AWK) $(GEN_VERSION_MAP_SCRIPT) > $@
%D%/symbols.h: $(SYMBOLS_FILE) $(GEN_HEADER_SCRIPT)
@$(MKDIR_P) %D%
- $(AM_V_GEN)$(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_HEADER_SCRIPT) > $@
+ $(AM_V_GEN)$(READELF) -sW $(LIBC_PATH) | $(SB_AWK) $(GEN_HEADER_SCRIPT) > $@
SB_NR_FILE = %D%/sb_nr.h.in
%D%/sb_nr.h: %D%/symbols.h $(SB_NR_FILE)