bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/29462] New: internal error in relocate, at powerpc.cc:10796


From: dante at cadence dot com
Subject: [Bug gold/29462] New: internal error in relocate, at powerpc.cc:10796
Date: Mon, 08 Aug 2022 19:42:33 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29462

            Bug ID: 29462
           Summary: internal error in relocate, at powerpc.cc:10796
           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 14268
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14268&action=edit
Reproducer program

runme.sh:
-------------------------------------------------------------
#!/bin/bash

LD=gold

cat > foo.c <<- EOM
void foo(void (*f)(void)) {  }
void my_callback() __attribute__ ((visibility ("hidden")));

void func(void) {
  my_callback();
}
EOM

cat > bar.c <<- EOM
void foo(void (*f)(void));
void my_callback()  __attribute__ ((visibility ("hidden")));

void my_callback() {
  foo(my_callback);
}
EOM

cat > symbols.map <<- EOM
func
foo
EOM

gcc -c -fPIC -mpltseq -mlongcall -o foo.o foo.c
gcc -c -fPIC -mpltseq -mlongcall -o bar.o bar.c
ld.$LD -r -d -o all.o bar.o foo.o
objcopy -w --keep-global-symbols="./symbols.map" all.o
gcc all.o -fuse-ld=$LD -shared -Bsymbolic -o libfoobar.so
-------------------------------------------------------------

gcc 12.1.0 on ppc64le (bug also happens on gcc 9.3.0):

$ ./runme.sh
/tmp/dante/bin/ld.gold: internal error in relocate, at powerpc.cc:10796


Works when LD=bfd.


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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]