[Bug target/82005] [8 regression] early lto debug creates invalid assembly on Darwin
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Wed Aug 30 19:49:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82005
--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> If you manually do the extraction / renaming and link with the early
> debug part it should work(?) (I didn't try myself, doing this
> manually might be a bit tricky -- look at the compile assembler,
> remove the DWARF segment and rename the GNU_DWARF_LTO segment to
> DWARF, remove all text and data sections and assemble.
If I do that, I get
% /opt/gcc/gcc8w/bin/gcc sinus.s -g -flto ccalucJK.ltrans0.s
duplicate symbol _main in:
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccdfehYe.o
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//cctL4UNA.o
ld: 1 duplicate symbol for architecture x86_64
collect2: error: ld returned 1 exit status
More information about the Gcc-bugs
mailing list