diff options
author | Geoff Levand <geoff@infradead.org> | 2020-05-09 20:58:31 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-05-18 16:10:35 +0200 |
commit | f61200d3e3386e78d49677dfb3911c9d7c0dfe4b (patch) | |
tree | 245f75099aa9869189b7128f83fab8b3b42e2fdb /arch/powerpc/boot | |
parent | powerpc/head_check: Automatic verbosity (diff) | |
download | linux-f61200d3e3386e78d49677dfb3911c9d7c0dfe4b.tar.xz linux-f61200d3e3386e78d49677dfb3911c9d7c0dfe4b.zip |
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
Diffstat (limited to 'arch/powerpc/boot')
-rwxr-xr-x | arch/powerpc/boot/wrapper | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index ed6266367bc0..35ace40d9fc2 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper @@ -29,6 +29,7 @@ set -e # Allow for verbose output if [ "$V" = 1 ]; then set -x + map="-Map wrapper.map" fi # defaults @@ -500,7 +501,7 @@ if [ "$platform" != "miboot" ]; then text_start="-Ttext $link_address" fi #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 rm $tmp fi |