Strange read for simple_object_elf_find_sections for .a file
Martin Liška
mliska@suse.cz
Thu Mar 12 10:36:47 GMT 2020
Hi.
I noticed a strange error during parsing of .gnu.lto_.lto section
in LTO plugin:
$ cat bss.c
int global_zero;
int global_one = 1;
int main() { return 0; }
$ gcc -flto bss.c -c
$ gcc bss.o
read version 9.0
while:
$ ar r x.a bss.o
ar: creating x.a
$ gcc x.a
read version 13617.13368
$ objdump -s -j .gnu.lto_.lto.655b2ec59df60b19 x.a
In archive x.a:
bss.o: file format elf64-x86-64
Contents of section .gnu.lto_.lto.655b2ec59df60b19:
0000 09000000 01000100 ........
which is the same as objdump of bss.o
Any idea why that happens?
Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Test-x.patch
Type: text/x-patch
Size: 2734 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200312/97433671/attachment-0001.bin>
More information about the Gcc-patches
mailing list