powerpc/wrapper: Output linker map file
To aid debugging wrapper troubles, output a linker map file 'wrapper.map' when the build is verbose. Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/fb477f5e91c6b74a1dec98df3cc0a1c91632d94d.1589049250.git.geoff@infradead.org
This commit is contained in:
parent
4c592a3439
commit
f61200d3e3
|
@ -29,6 +29,7 @@ set -e
|
||||||
# Allow for verbose output
|
# Allow for verbose output
|
||||||
if [ "$V" = 1 ]; then
|
if [ "$V" = 1 ]; then
|
||||||
set -x
|
set -x
|
||||||
|
map="-Map wrapper.map"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
|
@ -500,7 +501,7 @@ if [ "$platform" != "miboot" ]; then
|
||||||
text_start="-Ttext $link_address"
|
text_start="-Ttext $link_address"
|
||||||
fi
|
fi
|
||||||
#link everything
|
#link everything
|
||||||
${CROSS}ld -m $format -T $lds $text_start $pie $nodl -o "$ofile" \
|
${CROSS}ld -m $format -T $lds $text_start $pie $nodl -o "$ofile" $map \
|
||||||
$platformo $tmp $object/wrapper.a
|
$platformo $tmp $object/wrapper.a
|
||||||
rm $tmp
|
rm $tmp
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue