VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Geoff Levand <geoff@infradead.org> 2020-05-09 18:58:31 +0000 committer: Michael Ellerman <mpe@ellerman.id.au> 2020-05-19 00:10:35 +1000 commit: f61200d3e3386e78d49677dfb3911c9d7c0dfe4b parent: 4c592a34391ea4987d29c1718f931b50416ca015
Commit Summary:
powerpc/wrapper: Output linker map file
Diffstat:
1 file changed, 2 insertions, 1 deletion
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