[Bug ld/28879] [2.38 Regression] ld.bfd: possibly incorrect "undefined reference" errors

2022-02-11 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=28879

Allan McRae  changed:

   What|Removed |Added

 CC||allan at archlinux dot org

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


[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2021-03-10 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27360

--- Comment #8 from Allan McRae  ---
I'm installing it on top of 2.36.1  (built without --enable-shared).

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


[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2021-03-09 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27360

--- Comment #6 from Allan McRae  ---
I can still replicate on git master (160fe1933736c123e15199080874fcab8b9ecc65).

I build with the following configuration:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"

  ../binutils-gdb/configure \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=https://bugs.archlinux.org/ \
--enable-cet \
--enable-deterministic-archives \
--enable-gold \
--enable-ld=default \
--enable-lto \
--enable-plugins \
--enable-relro \
--enable-shared \
--enable-targets=x86_64-pep \
--enable-threads \
--disable-gdb \
--disable-werror \
--with-debuginfod \
--with-pic \
--with-system-zlib


Removing "--enable-shared" from configre, or "-fno-plt" from CFLAGS or
"-Wl,-z,now" from LDFLAGS does not give this error.

Not ld in the build tree is fine.  It is the installed file (which is relinked
during "make install") that shows the issue.

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


[Bug libctf/27297] libctf.a malformed, build fails on x86_64-apple-darwin18.7.0

2021-02-10 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27297

Allan McRae  changed:

   What|Removed |Added

 CC||allan at archlinux dot org

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


[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2021-02-10 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27360

--- Comment #3 from Allan McRae  ---
Bisected to the following commit:

1038406a8f6609ad0a449746da70393b0835f699
libctf: rip out BFD_DEPENDENCIES / BFD_LIBADD

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


[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2021-02-06 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27360

--- Comment #2 from Allan McRae  ---
Looking at the build output, the only difference in the commands used when
linking libctf during build and install are:

build:
-Wl,-rpath -Wl,/build/binutils/src/binutils-build/bfd/.libs
../bfd/.libs/libbfd.so 

install:
-L/build/binutils/pkg/binutils/usr/lib -L/usr/lib -lbfd 


The libiberty parts do not change.

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


[Bug libctf/27360] New: libctf.so.0: undefined symbol: bsearch_r

2021-02-06 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27360

Bug ID: 27360
   Summary: libctf.so.0: undefined symbol: bsearch_r
   Product: binutils
   Version: 2.36.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: libctf
  Assignee: unassigned at sourceware dot org
  Reporter: allan at archlinux dot org
  Target Milestone: ---

Building binutils 2.36.1 with "--enable-shared" and either CFLAGS="-fno-plt" or
LDFLAGS="-Wl,-z,now" results in ld giving the following error:

ld: symbol lookup error: /usr/lib/libctf.so.0: undefined symbol: bsearch_r

Note that the testsuite runs fine with these flags.  It is only after "make
install" that this issues shows.

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


[Bug gold/21090] gcc compiled with --enable-default-pie show errors in binutils testsuite

2017-02-26 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21090

Allan McRae  changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
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


[Bug binutils/17510] strings: crash when given a truncated ELF

2014-10-25 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=17510

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
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


[Bug binutils/17509] Segfault / out of bounds access in strings

2014-10-24 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=17509

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
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


[Bug ld/17112] [regression] binutils trunk ld/LTO 11 test fails when built using GCC 4.9

2014-07-04 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=17112

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
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


[Bug ld/16452] ELF executable with weak reference linked with ld causes assertion in ld.so

2014-04-22 Thread allan at archlinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=16452

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
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


[Bug gold/15411] New: FAIL: debug_msg.sh

2013-04-26 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=15411

 Bug #: 15411
   Summary: FAIL: debug_msg.sh
   Product: binutils
   Version: 2.24 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: al...@archlinux.org
CC: ccout...@google.com
Classification: Unclassified


Created attachment 7004
  -- http://sourceware.org/bugzilla/attachment.cgi?id=7004
Failure log

On i686-pc-linux-gnu I get a failure in debug_msg.sh.

Binutils 20130427 (current head)
gcc version 4.8.0 20130411
glibc 2.17
linux 3.8

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/15411] FAIL: debug_msg.sh

2013-04-26 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=15411

--- Comment #1 from Allan McRae allan at archlinux dot org 2013-04-27 
01:23:47 UTC ---
Created attachment 7005
  -- http://sourceware.org/bugzilla/attachment.cgi?id=7005
debug_msg.o

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/15411] FAIL: debug_msg.sh

2013-04-26 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=15411

--- Comment #3 from Allan McRae allan at archlinux dot org 2013-04-27 
01:24:46 UTC ---
Created attachment 7007
  -- http://sourceware.org/bugzilla/attachment.cgi?id=7007
odr_violation2.o

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/14763] exception_static_test crashes (with glibc-2.16?)

2013-04-26 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14763

--- Comment #1 from Allan McRae allan at archlinux dot org 2013-04-27 
01:36:17 UTC ---
I am still seeing this with current head (20130427) and glibc-2.17.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/15341] debug_msg.sh make check fails

2013-04-15 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=15341

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

--- Comment #10 from Allan McRae allan at archlinux dot org 2013-04-15 
09:07:36 UTC ---
I get what looks like a similar failure on i686-pc-linux-gnu (gcc-4.8.0
20130411, glibc-2.17, linux-3.8.4).   Although I do not see it on
x86_64-unknown-linux-gnu.


# cat
/home/arch/chroot/testing-i686/allan/build/src/binutils-build/gold/testsuite/debug_msg.sh.log
 
FAIL: debug_msg.sh (exit: 1)


Did not find expected error in debug_msg.err:
   : symbol 'SometimesInlineFunction(int)' defined in multiple places (possible
ODR violation):

Actual error output below:
gcctestdir/ld: warning: while linking debug_msg: symbol
'Ordering::operator()(int, int)' defined in multiple places (possible ODR
violation):
  /build/src/binutils-2.23.2/gold/testsuite/odr_violation2.cc:12 from
odr_violation2.o
  /build/src/binutils-2.23.2/gold/testsuite/odr_violation1.cc:6 from
odr_violation1.o
debug_msg.o:debug_msg.cc:function badref1: error: undefined reference to
'undef_int'
debug_msg.o:debug_msg.cc:function badref2: error: undefined reference to
'undef_float'
debug_msg.o:debug_msg.cc:function fn_array: error: undefined reference to
'undef_fn1()'
debug_msg.o:debug_msg.cc:function fn_array: error: undefined reference to
'undef_fn2()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:50: error: undefined
reference to 'undef_fn1()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:55: error: undefined
reference to 'undef_fn2()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:43: error: undefined
reference to 'undef_fn1()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:44: error: undefined
reference to 'undef_fn2()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:45: error: undefined
reference to 'undef_int'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:43: error: undefined
reference to 'undef_fn1()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:44: error: undefined
reference to 'undef_fn2()'
/build/src/binutils-2.23.2/gold/testsuite/debug_msg.cc:45: error: undefined
reference to 'undef_int'
collect2: error: ld returned 1 exit status

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/14769] Gold generates bad executable with -z relro

2012-11-01 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14769

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/14763] exception_static_test crashes (with glibc-2.16?)

2012-10-24 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14763

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug ld/14052] binutils 2.22.52.0.2 breaks 3.3.x kernel on i686

2012-05-02 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug ld/14052] binutils 2.22.52.0.2 breaks 3.3.x kernel on i686

2012-05-02 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

--- Comment #7 from Allan McRae allan at archlinux dot org 2012-05-03 
02:05:06 UTC ---
FYI, I have reports of the pr13621 patch causing kernel issues using both grub
and syslinux.  Of course, both bootloaders could be broken...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug binutils/12632] strip crashes when it does not recognise the file format

2011-05-05 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12632

--- Comment #6 from Allan McRae allan at archlinux dot org 2011-05-06 
05:02:25 UTC ---
Created attachment 5710
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5710
File that triggers bug

I am still getting a similar crash on the current head (2.21.51.20110506)

(gdb) run
Starting program: /home/arch/code/binutils-install/usr/bin/strip --strip-debug
pkg/usr/src/metasploit/external/source/meterpreter/source/jpeg-8/lib/win/x64/jpeg.lib
/home/arch/code/binutils-install/usr/bin/strip:pkg/usr/src/metasploit/external/source/meterpreter/source/jpeg-8/lib/win/x64/jpeg.lib(./x64/Release/jutils.obj):
Unable to recognise the format of file: File format not recognized

Program received signal SIGSEGV, Segmentation fault.
0xf7f1ddb9 in bfd_bwrite (ptr=0x808d268, size=8192, abfd=0x0)
at ../../binutils/bfd/bfdio.c:206
206  if (abfd-iovec)
(gdb) bt
#0  0xf7f1ddb9 in bfd_bwrite (ptr=0x808d268, size=8192, abfd=0x0)
at ../../binutils/bfd/bfdio.c:206
#1  0x0804be94 in copy_unknown_object (ibfd=0x8088d58, obfd=0x0)
at ../../binutils/binutils/objcopy.c:1391
#2  0x0804d60d in copy_archive (ibfd=0x80825d8, obfd=0x808aec0, 
output_target=0xf7fb74dc elf32-i386, force_output_target=0, 
input_arch=0x0) at ../../binutils/binutils/objcopy.c:2102
#3  0x0804da17 in copy_file (
input_filename=0xd8db
pkg/usr/src/metasploit/external/source/meterpreter/source/jpeg-8/lib/win/x64/jpeg.lib,
 
output_filename=0x8082578
pkg/usr/src/metasploit/external/source/meterpreter/source/jpeg-8/lib/win/x64/stz6t8Ie,
input_target=0x0, 
output_target=0xf7fb74dc elf32-i386, input_arch=0x0)
at ../../binutils/binutils/objcopy.c:2249
#4  0x0804f03f in strip_main (argc=3, argv=0xd6f4)
at ../../binutils/binutils/objcopy.c:3055
#5  0x08050cf4 in main (argc=3, argv=0xd6f4)
at ../../binutils/binutils/objcopy.c:4014

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug binutils/12632] strip crashes when it does not recognise the file format

2011-05-05 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12632

Allan McRae allan at archlinux dot org changed:

   What|Removed |Added

 CC||allan at archlinux dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


[Bug gold/12353] New: exception_separate_shared_{12,21}_test fail when built with --as-needed

2010-12-28 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12353

   Summary: exception_separate_shared_{12,21}_test fail when built
with --as-needed
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: al...@archlinux.org


When building the gold testsuite with LDFLAGS=-Wl,--as-needed, the following
tests fail due to undefined symbols:

FAIL: exception_separate_shared_12_test (exit: 127)
===

./exception_separate_shared_12_test: symbol lookup error:
./exception_shared_1.so: undefined symbol: _Z2f1v

FAIL: exception_separate_shared_21_test (exit: 127)
===

./exception_separate_shared_21_test: symbol lookup error:
./exception_shared_1.so: undefined symbol: _Z2f1v


When built with --as-needed:
 0x0001 (NEEDED) Shared library:
[exception_shared_1.so]
 0x0001 (NEEDED) Shared library: [libc.so.6]

When built without --as-needed:
 0x0001 (NEEDED) Shared library:
[exception_shared_1.so]
 0x0001 (NEEDED) Shared library:
[exception_shared_2.so]
 0x0001 (NEEDED) Shared library: [libstdc++.so.6]
 0x0001 (NEEDED) Shared library: [libm.so.6]
 0x0001 (NEEDED) Shared library: [libgcc_s.so.1]
 0x0001 (NEEDED) Shared library: [libc.so.6]

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils