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

--- Comment #6 from Rafael Ávila de Espíndola <rafael.espindola at gmail dot 
com> ---
(In reply to Cary Coutant from comment #5)
> Testcase, please.

From the description:

$ cat test.cpp
void g(const char* x);
void f() {
  g("aoeuaoeuaoeuao");
}
$ gcc -shared -fPIC  test.cpp -o test.so -fuse-ld=bfd -O2 && nm test.so | grep
' r '
0000000000000728 r __FRAME_END__
$ gcc -shared -fPIC  test.cpp -o test.so -fuse-ld=gold -O2 && nm test.so | grep
' r '
0000000000000760 r __FRAME_END__
00000000000006f5 r .LC0

note the extra .LC0 with gold.

> I'm not sure what you're asking for here, though. You want to make -X the
> default?

Yes, just have the some default for --discard-locals/-X as bfd ld.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to