[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-28 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

Nick Clifton  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

--- Comment #7 from Nick Clifton  ---
Fedora specific.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-27 Thread tstellar at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

--- Comment #6 from Tom Stellard  ---
(In reply to Andreas Schwab from comment #5)
> This might be a fedora specific bug, so try filing a bug there first.

It looks like this is caused by a Fedora specific patch, so I've filed a bug in
the Fedora bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1828587

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-27 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

--- Comment #5 from Andreas Schwab  ---
This might be a fedora specific bug, so try filing a bug there first.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-27 Thread tstellar at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

--- Comment #4 from Tom Stellard  ---
(In reply to Nick Clifton from comment #3)
> Hi Tom,
> 
>   I am sorry but I cannot reproduce this.  It seems very strange that a
>   symlink should be causing a segmentation fault when a copy does not.
> 

I am able to reproduce this running in the fedora:rawhide container image, so
you may want to give that a try.

>   The "ar" program that you are running - is this the binutils ar binary
>   or is it an alias/symlink for the gcc-ar script ?
> 

ar is not a symlink or alias as far as I can tell.

>   If you have the symlink in place and you run:
> 
> ar crs --plugin /usr/lib/bfd-plugins/liblto_plugin.so.0.0.0 foo.a foo.o
> bar.o
> 
>   Does that work ?
> 

Yes, this works.

>   Does the problem persist if you use the current mainline development
>   sources for the binutils rather than the 2.34 release ?
> 

I will try the development sources.  I'm currently testing with
gcc-10.0.1-0.12.fc33 and binutils-2.34-3.fc33.

> Cheers
>   Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-27 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #3 from Nick Clifton  ---
Hi Tom,

  I am sorry but I cannot reproduce this.  It seems very strange that a
  symlink should be causing a segmentation fault when a copy does not.

  The "ar" program that you are running - is this the binutils ar binary
  or is it an alias/symlink for the gcc-ar script ?

  If you have the symlink in place and you run:

ar crs --plugin /usr/lib/bfd-plugins/liblto_plugin.so.0.0.0 foo.a foo.o
bar.o

  Does that work ?

  Does the problem persist if you use the current mainline development
  sources for the binutils rather than the 2.34 release ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com
 Status|NEW |WAITING

--- Comment #2 from H.J. Lu  ---
Please try binutils 2.34 branch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25873] ar segfaults when liblto_plugin.so.0.0.0 is a symlink in /usr/lib/bfd-plugins

2020-04-24 Thread tstellar at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25873

--- Comment #1 from Tom Stellard  ---
It also seems like the LLVMgold.so plugin does not have the same problem.  This
similar sequence works with this plugin:

echo "int foo(){}" | clang -flto -O2 -c -x c -o foo.o -
echo "int bar(){}" | clang -flto -O2 -c -x c -o bar.o -
ln -s /usr/lib64/LLVMgold.so /usr/lib/bfd-plugins/
ar crs foo.a foo.o bar.o

-- 
You are receiving this mail because:
You are on the CC list for the bug.