This is an archive of the discontinued LLVM Phabricator instance.

Change the format of the map file.
ClosedPublic

Authored by ruiu on Apr 28 2017, 1:03 PM.

Details

Summary

Previously, we printed out input sections and input files in
separate columns as shown below.

Address          Size             Align Out     In      File    Symbol
0000000000201000 0000000000000015     4 .text
0000000000201000 000000000000000e     4         .text
0000000000201000 000000000000000e     4                 foo.o
0000000000201000 0000000000000000     0                         _start
0000000000201005 0000000000000000     0                         f(int)
000000000020100e 0000000000000000     0                         local
0000000000201010 0000000000000002     4                 bar.o
0000000000201010 0000000000000000     0                         foo
0000000000201011 0000000000000000     0                         bar

This format doesn't make much sense because for each input section,
there's always exactly one input file. This patch changes the format
to this.

Address          Size             Align Out     In      Symbol
0000000000201000 0000000000000015     4 .text
0000000000201000 000000000000000e     4         foo.o:(.text)
0000000000201000 0000000000000000     0                 _start
0000000000201005 0000000000000000     0                 f(int)
000000000020100e 0000000000000000     0                 local
0000000000201010 0000000000000002     4         bar.o:(.text)
0000000000201010 0000000000000000     0                 foo
0000000000201011 0000000000000000     0                 bar

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Apr 28 2017, 1:03 PM
ruiu updated this revision to Diff 97148.Apr 28 2017, 1:16 PM
  • Updated the test to include archive file name.
This revision is now accepted and ready to land.Apr 28 2017, 1:44 PM
This revision was automatically updated to reflect the committed changes.