[PATCH] D44899: [ELF] - Print LMA in _map file.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 26 09:01:14 PDT 2018
grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, emaste.
Currently, LLD prints VA, but not LMA in a map file.
It seems can be useful to print both to reveal layout details
and patch implements it.
Note that gold also show LMA in a map file, but it is very limited,
for example:
.ddd 0x000000000000104c 0x101 load address 0x000000000000303c
0x000000000000104c 0x1 BYTE 0x11
0x000000000000114d . = (. + 0x100)
*fill* 0x000000000000104d 0x100
*(.ddd.*)
.text 0x0000000000001150 0x1 load address 0x0000000000003140
*(.text.*)
.text 0x0000000000001150 0x1 test.o
0x0000000000001150 _start
0x0000000000001150 f(int)
I think we can do better and show more detailed info like this patch does.
One more thing I thought about was to hide `LMA` column if it is known there
is no difference with `VA` column. Then `VA` could be renamed to `VA/LMA`
https://reviews.llvm.org/D44899
Files:
ELF/MapFile.cpp
test/ELF/linkerscript/Inputs/map-file2.s
test/ELF/linkerscript/map-file.test
test/ELF/linkerscript/map-file2.test
test/ELF/map-file.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44899.139799.patch
Type: text/x-patch
Size: 19102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180326/d29a3c04/attachment.bin>
More information about the llvm-commits
mailing list