ARM: add debug ".edata_real" symbol
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 1 Nov 2017 19:18:13 +0000 (19:18 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 Nov 2017 00:10:28 +0000 (00:10 +0000)
Add an additional symbol to the decompressor image, which will allow
future debugging of non-bootable problems similar to the one encountered
with the EFI stub.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/boot/compressed/vmlinux.lds.S

index 7a4c59154361d00ee88c2d03cb6af5aa8cace7e7..7d06aa19c3e6b5664c0e17a4de826b0810e78730 100644 (file)
@@ -85,6 +85,15 @@ SECTIONS
 
   _edata = .;
 
+  /*
+   * The image_end section appears after any additional loadable sections
+   * that the linker may decide to insert in the binary image.  Having
+   * this symbol allows further debug in the near future.
+   */
+  .image_end (NOLOAD) : {
+    _edata_real = .;
+  }
+
   _magic_sig = ZIMAGE_MAGIC(0x016f2818);
   _magic_start = ZIMAGE_MAGIC(_start);
   _magic_end = ZIMAGE_MAGIC(_edata);