https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96404

--- Comment #5 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Comparing example file:

$ LANG=C cmp --ignore-initial=16 ./stage2-x86_64-pc-linux-gnu/libgomp/task.o
./stage3-x86_64-pc-linux-gnu/libgomp/task.o
./stage2-x86_64-pc-linux-gnu/libgomp/task.o
./stage3-x86_64-pc-linux-gnu/libgomp/task.o differ: char 325521, line 4234

Looks like there is slight non-determinism in .debug_loc. Don't know if it
comes from gcc or binutils. Both wibbly entries are the same symbol offset:


$ diff -U10000 <(x86_64-pc-linux-gnu-readelf -a
stage2-x86_64-pc-linux-gnu/libgomp/task.o) <(x86_64-pc-linux-gnu-readelf -a
stage3-x86_64-pc-linux-gnu/libgomp/task.o) | egrep 'section|^[-+]'

 Relocation section '.rela.debug_loc' at offset 0x36938 contains 7185 entries:
-00000000e312  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
-00000000e320  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000e312  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
+00000000e320  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000e6f5  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
-00000000e703  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000e6f5  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
+00000000e703  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000e9c4  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
-00000000e9d2  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000e9c4  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
+00000000e9d2  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000ec69  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000ec69  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000eecd  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000eecd  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000ef61  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000ef61  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000f01f  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000f01f  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-00000000f388  000200000001 R_X86_64_64       0000000000000000 .text + 66b8
+00000000f388  000200000001 R_X86_64_64       0000000000000000 .text + 66cd
-0000000112e3  000200000001 R_X86_64_64       0000000000000000 .text + 5a84
+0000000112e3  000200000001 R_X86_64_64       0000000000000000 .text + 5a79

Reply via email to