https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91478
--- Comment #13 from dave.anglin at bell dot net --- On 2019-08-23 10:09 a.m., marxin at gcc dot gnu.org wrote: > Ok, now I'm more understanding the code in > simple_object_elf_copy_lto_debug_sections and I implemented the suggested > approach. I still see the error: COMPILER_PATH=/test/gnu/gcc/objdir/gcc/:/test/gnu/gcc/objdir/gcc/:/usr/ccs/bin/: /usr/ccs/bin LIBRARY_PATH=/test/gnu/gcc/objdir/gcc/:/test/gnu/gcc/objdir/gcc/:/usr/ccs/lib/pa 20_64/:/opt/langtools/lib/pa20_64/:/lib/pa20_64/:/usr/lib/pa20_64/:/usr/ccs/lib/ pa20_64/:/opt/langtools/lib/pa20_64/:/lib/pa20_64/:/usr/lib/pa20_64/ COLLECT_GCC_OPTIONS='-fdiagnostics-color=never' '-c' '-fno-openmp' '-fno-openacc ' '-fPIC' '-O1' '-B' '/test/gnu/gcc/objdir/gcc/' '-fno-diagnostics-show-caret' ' -fno-diagnostics-show-line-numbers' '-gdwarf-2' '-g1' '-fwhole-program' '-O' '-v ' '-save-temps' '-dumpdir' './' '-dumpbase' 'pr41893-1.exe.ltrans0' '-fltrans' ' -o' 'pr41893-1.exe.ltrans0.ltrans.o' [Leaving LTRANS pr41893-1.exe.ltrans0.o] ld: Unsatisfied hidden symbol "". Symbol was referenced from file pr41893-1.o.de bug.temp.o ld: Unsatisfied hidden symbol "". Symbol was referenced from file pr41893-1.o.de bug.temp.o ld: Unsatisfied hidden symbol "". Symbol was referenced from file pr41893-1.o.de bug.temp.o ld: Unsatisfied hidden symbol "". Symbol was referenced from file pr41893-2.o.de bug.temp.o 4 errors. collect2: fatal error: ld returned 1 exit status compilation terminated. readelf shows: Symbol table '.symtab' contains 31 entries: Num: Value Size Type Bind Vis Ndx Name 29: 0000000000000000 0 NOTYPE WEAK HIDDEN 1 pr41893_2.c.f7e743e4 30: 0000000000000000 4 NOTYPE WEAK HIDDEN UND