* Josh Poimboeuf <[email protected]> [2026-12-02 15:27:26]: > On Tue, Sep 15, 2026 at 07:45:37AM +0530, Srikar Dronamraju wrote: > > > > diff --git a/scripts/faddr2line b/scripts/faddr2line > > index 622875396bcf..6e867b053ac4 100755 > > --- a/scripts/faddr2line > > +++ b/scripts/faddr2line > > @@ -119,9 +119,9 @@ run_readelf() { > > # This assumes that readelf first prints the file header, then the > > section headers, then the symbols. > > # Note: It seems that GNU readelf does not prefix section headers with > > the "There are X section headers" > > # line when multiple options are given, so let's also match with the > > "Section Headers:" line. > > - ELF_FILEHEADER=$(sed -n '/There are [0-9]* section headers, starting at > > offset\|Section Headers:/q;p' "$tmpfile") > > - ELF_SECHEADERS=$(sed -n '/There are [0-9]* section headers, starting at > > offset\|Section Headers:/,$p' "$tmpfile" | sed -n '/Symbol table .* > > contains [0-9]* entries:/q;p') > > - ELF_SYMS=$(sed -n '/Symbol table .* contains [0-9]* entries:/,$p' > > "$tmpfile") > > + ELF_FILEHEADER=$(sed -n '/There are [0-9]* section headers, starting at > > offset\|Section Headers:/q;p' "$tmpfile" || true) > > + ELF_SECHEADERS=$(sed -n '/There are [0-9]* section headers, starting at > > offset\|Section Headers:/,$p' "$tmpfile" | sed -n '/Symbol table .* > > contains [0-9]* entries:/q;p' || true) > > + ELF_SYMS=$(sed -n '/Symbol table .* contains [0-9]* entries:/,$p' > > "$tmpfile" || true) > > > > rm -f -- "$tmpfile" > > } > > > > Note: only the SECHEADERS line needs true but adding true to just that line > > looks hacky. > > Hm, do you have SHELLOPTS=pipefail set in your environment? >
No, $ echo $SHELLOPTS braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor $ set -o | grep -e fail -e pipe pipefail off $ shopt | grep -e fail -e pipe execfail off failglob off lastpipe off $ uname -m ppc64le And I face this problem with scripts/faddr2line only on ppc64le and not on x86 systems. -- Thanks and Regards Srikar Dronamraju
