[Bug lto/78613] New: [6/7 Regression] Assembler messages: Error: can't resolve `.rodata' {.rodata section} - `.Ltext0' {.text section}

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 30 14:19:00 GMT 2016


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

            Bug ID: 78613
           Summary: [6/7 Regression] Assembler messages: Error: can't
                    resolve `.rodata' {.rodata section} - `.Ltext0' {.text
                    section}
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
  Target Milestone: ---

markus@x4 /tmp % cat 1.i
void foo() {}

markus@x4 /tmp % cat 2.i
asm(".section .rodata");

markus@x4 /tmp % gcc -g -flto --shared 1.i 2.i
/tmp/ccDWL0Ht.s: Assembler messages:
/tmp/ccDWL0Ht.s:38: Error: can't resolve `.rodata' {.rodata section} -
`.Ltext0' {.text section}
/tmp/ccDWL0Ht.s:101: Error: can't resolve `.rodata' {.rodata section} -
`.Ltext0' {.text section}
lto-wrapper: fatal error: /usr/x86_64-pc-linux-gnu/gcc-bin/7.0.0/gcc returned 1
exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

gcc-5 was fine.


More information about the Gcc-bugs mailing list