This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82005] [8 regression] early lto debug creates invalid assembly on Darwin
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Aug 2017 17:13:34 +0000
- Subject: [Bug target/82005] [8 regression] early lto debug creates invalid assembly on Darwin
- Auto-submitted: auto-generated
- References: <bug-82005-4@http.gcc.gnu.org/bugzilla/>
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