https://sourceware.org/bugzilla/show_bug.cgi?id=29542
Bug ID: 29542 Summary: PowerPC: internal error in get_output_view, at output.h:110 Product: binutils Version: 2.39 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: dante at cadence dot com CC: ian at airs dot com Target Milestone: --- Created attachment 14307 --> https://sourceware.org/bugzilla/attachment.cgi?id=14307&action=edit Reproducer program runme.sh: ------------------------------------------------------------- #!/bin/bash BINUTILS_HOME=/home/dante/src/binutils/ppc64le export PATH="$BINUTILS_HOME/bin:$PATH" LD=gold ld.$LD -V | head -1 rm *.o *.c *.so >& /dev/null cat > foo.c <<- EOM #include <iostream> extern "C" { EOM for i in `seq 1 259`; do printf "int foo_%s();\n" $i >> foo.c done echo 'int use_all_undefs() {' >> foo.c for i in `seq 1 259`; do printf "foo_%s();\n" $i >> foo.c done echo 'return 1; }}' >> foo.c g++ -B$BINUTILS_HOME/bin -c -fPIC -mlongcall -o foo.o foo.c g++ ./foo.o -s -fuse-ld=$LD -B$BINUTILS_HOME/bin -shared -o ./libfoo.so ------------------------------------------------------------- gcc 12.1.0 on ppc64le (bug also happens on gcc 9.3.0): $ ./runme.sh GNU gold (GNU Binutils 2.39.0.20220826) 1.16 /home/dante/src/binutils/ppc64le/bin/ld.gold: internal error in get_output_view, at output.h:110 collect2: error: ld returned 1 exit status Works when LD=bfd. Also works without the "-s" option. Running binutils v2.39 configured with: ./configure --prefix=/tmp/dante --enable-shared --enable-plugins --enable-gold --enable-threads -- You are receiving this mail because: You are on the CC list for the bug.