[PATCH] D63190: Add -gnu-map option to emit a map file in the GNU-tsyle format.

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 03:46:02 PDT 2019


peter.smith added a comment.

Not had a chance to go through the gold source yet to see if there is anything obviously missing. From a quick experiment using a linker-script derived from ld.bfd it seems like gold's map file remains much the same, whereas ld.bfd will give information about symbol resolution etc. Will take a look at the gold source this afternoon.



================
Comment at: lld/test/ELF/gnu-map.s:65
+//  CHECK-NEXT: .text           0x0000000000201000 0x2d
+//  CHECK-NEXT:  .text          0x0000000000201000 0x28        /home/ruiu/llvm/b/tools/lld/test/ELF/Output/gnu-map.s.tmp1.o:(.text)
+//  CHECK-NEXT:                 0x0000000000201000                _start
----------------
The path names will be different, will need to use some kind of regex here to skip the first part.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63190/new/

https://reviews.llvm.org/D63190





More information about the llvm-commits mailing list