[GSOC] LTO dump tool project
Hrishikesh Kulkarni
hrishikeshparag@gmail.com
Fri Jun 1 18:59:00 GMT 2018
Hi,
I have pushed the changes to github
(https://github.com/hrisearch/gcc). Added a command line option for
specific dumps of variables and functions used in IL e.g.
-fdump-lto-list=foo will dump:
Call Graph:
foo/1 (foo)
Type: function
visibility: default
Regards,
Hrishikesh
On Tue, May 29, 2018 at 11:13 PM, Martin Liška <mliska@suse.cz> wrote:
> On 05/29/2018 07:38 PM, Martin Liška wrote:
>>
>> $ nm main.o
>> 00000000 T main
>> 00000000 T mystring
>> 00000000 C pole
>
>
> Or we can be inspired by readelf:
>
> $ readelf -s a.out
> [snip]
> Symbol table '.symtab' contains 74 entries:
> Num: Value Size Type Bind Vis Ndx Name
> 66: 0000000000601250 0 NOTYPE GLOBAL DEFAULT 24 _end
> 67: 00000000004004b0 43 FUNC GLOBAL DEFAULT 13 _start
> 68: 0000000000601038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start
> 69: 0000000000400582 70 FUNC GLOBAL DEFAULT 13 main
> 70: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
> fwrite@@GLIBC_2.2.5
>
> Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: specific-symbols-dump.diff
Type: text/x-patch
Size: 7022 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20180601/01eb51e6/attachment.bin>
More information about the Gcc
mailing list