This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/65015] LTO produces randomly ordered debug information


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

conchur at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #34746|0                           |1
        is obsolete|                            |

--- Comment #12 from conchur at web dot de ---
Created attachment 34747
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34747&action=edit
Mini Testcases

> Gold doesn't do that (thus, it works with -fuse-ld=gold).

Weird, my gnu gold 2.25-4 (debian version) still shows the symptoms:

SIMPLE-LINK: OK
SIMPLE-OBJDUMP: OK
SIMPLE-EXTERNAL-DEBUG: OK
BFD-LTO-LINK: FAIL
BFD-LTO-OBJDUMP: FAIL
BFD-LTO-EXTERNAL-DEBUG: FAIL
NOPART-BFD-LTO-LINK: OK
NOPART-BFD-LTO-OBJDUMP: OK
NOPART-BFD-LTO-EXTERNAL-DEBUG: OK
GOLD-LTO-LINK: FAIL
GOLD-LTO-OBJDUMP: FAIL
GOLD-LTO-EXTERNAL-DEBUG: FAIL
NOPART-GOLD-LTO-LINK: OK
NOPART-GOLD-LTO-OBJDUMP: OK
NOPART-GOLD-LTO-EXTERNAL-DEBUG: OK

Maybe you have a newer gold version installed which already includes a patch
which resolves this problem?

Diff of bfd:

221c221
<     41: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ccsmMmrk.ltrans0.o
---
>     41: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cctSjrTo.ltrans0.o

Diff of gold:

201c201
<     14: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cc4lSDuA.ltrans0.o
---
>     14: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ccxXItKB.ltrans0.o
245c245
<     Build ID: a9117c8c1852ec657a0cdd6e206427571bae9b31
---
>     Build ID: d65e429c3314089118f114fee1625276ef91835c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]