[Bug ld/19319] New: Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

Bug ID: 19319
   Summary: Regression: ld.bfd: 2.25.90.20151125 assertion fail
../../bfd/elf32-i386.c:5297
   Product: binutils
   Version: 2.25
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: svante.signell at gmail dot com
  Target Milestone: ---

Hello,

ld.bfd is broken on GNU/Hurd since Debian version 20151028-1. Compared to the
previous version, 20151021-1. From debian/changelog:
  * Snapshot, taken from the trunk 20151028.
- Fix PR ld/19171 (LP: #1510067), PR ld/19175 (LP: #1510270).

Test case is a patched corosync package during linking:
(cd exec; gcc -g -O2 -fuse-ld=bfd -fPIE -fstack-protector-strong -Wformat
-Werror=format-security -fPIC -DPIC -fPIE -O3 -ggdb3 -Wall -Wshadow
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align
-Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -I/usr/include -fPIE
-pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs -fPIC -DPIC -pie -Wl,-z
-Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/corosync corosync-vsf_ykd.o
corosync-coroparse.o corosync-vsf_quorum.o corosync-sync.o corosync-logsys.o
corosync-cfg.o corosync-cmap.o corosync-cpg.o corosync-pload.o
corosync-votequorum.o corosync-util.o corosync-schedwrk.o corosync-main.o
corosync-apidef.o corosync-quorum.o corosync-icmap.o corosync-timer.o
corosync-ipc_glue.o corosync-service.o corosync-logconfig.o
corosync-totemconfig.o  ./.libs/libtotem_pg.so -lnss3 -lnssutil3 -lsmime3
-lssl3 -lplds4 -lplc4 -lnspr4 ../common_lib/.libs/libcorosync_common.so -lqb
-ldl -lrt -lpthread)
/usr/bin/ld.bfd: BFD (GNU Binutils for Debian) 2.25.90.20151125 assertion fail
../../bfd/elf32-i386.c:5297

Using -fuse-ld=gold linking is fine.

Both test cases in 19171 and 19175 links fine too.

Shall I attach a tar file with the objective files for the link command above?

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu  ---
(In reply to Svante Signell from comment #0)
> Shall I attach a tar file with the objective files for the link command
> above?

Yes, please.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #2 from Svante Signell  ---
Created attachment 8819
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8819&action=edit
Object files

tar.gz file of object files in the linking.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #3 from H.J. Lu  ---
(In reply to Svante Signell from comment #2)
> Created attachment 8819 [details]
> Object files
> 
> tar.gz file of object files in the linking.

I need everything, including

./.libs/libtotem_pg.so -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4
../common_lib/.libs/libcorosync_common.so -lqb

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #4 from H.J. Lu  ---
(In reply to Svante Signell from comment #0)
> Hello,
> 
> ld.bfd is broken on GNU/Hurd since Debian version 20151028-1. Compared to

Since it is on GNU/Hurd, I need ALL input files for linker.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #5 from Svante Signell  ---
Created attachment 8820
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8820&action=edit
Dynamically linked libraries

Here are the dynamically linked libraries. Some of these libraries also need
the system hurd libraries as well as libc0.3 etc. Do you want me to supply them
too?

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #6 from H.J. Lu  ---
(In reply to Svante Signell from comment #5)
> Created attachment 8820 [details]
> Dynamically linked libraries
> 
> Here are the dynamically linked libraries. Some of these libraries also need
> the system hurd libraries as well as libc0.3 etc. Do you want me to supply
> them too?

I need everything linker sees as input since I don't have GNU/Hurd.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #7 from Svante Signell  ---
Created attachment 8821
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8821&action=edit
Additional libs

Hopefully all needed libs. Please let me know if anything is missing.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #8 from H.J. Lu  ---
Please add "-v" to gcc. It will show additional input files passed to
linker.  Also I need libc.so as well as input files inside libc.so.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #9 from Svante Signell  ---
Here is the output with gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-gnu/5/lto-wrapper
Target: i586-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 5.2.1-26'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --disable-libitm --disable-libsanitizer
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-hurd-i386/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-hurd-i386
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-hurd-i386
--with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-multiarch --with-arch=i586 --with-tune=generic
--enable-checking=release --build=i586-gnu --host=i586-gnu --target=i586-gnu
Thread model: posix
gcc version 5.2.1 20151125 (Debian 5.2.1-26) 
COMPILER_PATH=/usr/lib/gcc/i586-gnu/5/:/usr/lib/gcc/i586-gnu/5/:/usr/lib/gcc/i586-gnu/:/usr/lib/gcc/i586-gnu/5/:/usr/lib/gcc/i586-gnu/
LIBRARY_PATH=/usr/lib/gcc/i586-gnu/5/:/usr/lib/gcc/i586-gnu/5/../../../i386-gnu/:/usr/lib/gcc/i586-gnu/5/../../../:/lib/i386-gnu/:/lib/:/usr/lib/i386-gnu/:/usr/lib/
COLLECT_GCC_OPTIONS='-g' '-v' '-fuse-ld=bfd' '-O2' '-fstack-protector-strong'
'-Wformat=1' '-Werror=format-security' '-D' 'PIC' '-O3' '-ggdb3' '-Wall'
'-Wshadow' '-Wmissing-prototypes' '-Wmissing-declarations'
'-Wstrict-prototypes' '-Wdeclaration-after-statement' '-Wpointer-arith'
'-Wwrite-strings' '-Wcast-align' '-Wbad-function-cast'
'-Wsuggest-attribute=format' '-Wformat=2' '-Wformat-security'
'-Wformat-nonliteral' '-Wno-long-long' '-Wno-strict-aliasing' '-I'
'/usr/include' '-fPIC' '-D' 'PIC' '-pie' '-o' '.libs/corosync' '-mtune=generic'
'-march=i586'
 /usr/lib/gcc/i586-gnu/5/collect2 -plugin
/usr/lib/gcc/i586-gnu/5/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/i586-gnu/5/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccTRuZxO.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/
--build-id --eh-frame-hdr -m elf_i386 --hash-style=gnu -dynamic-linker
/lib/ld.so -pie -fuse-ld=bfd -o .libs/corosync
/usr/lib/gcc/i586-gnu/5/../../../i386-gnu/Scrt1.o
/usr/lib/gcc/i586-gnu/5/../../../i386-gnu/crti.o
/usr/lib/gcc/i586-gnu/5/crtbeginS.o -L/usr/lib/gcc/i586-gnu/5
-L/usr/lib/gcc/i586-gnu/5/../../../i386-gnu -L/usr/lib/gcc/i586-gnu/5/../../..
-L/lib/i386-gnu -L/usr/lib/i386-gnu -z relro -z now -z defs -z relro -z now
--as-needed corosync-vsf_ykd.o corosync-coroparse.o corosync-vsf_quorum.o
corosync-sync.o corosync-logsys.o corosync-cfg.o corosync-cmap.o corosync-cpg.o
corosync-pload.o corosync-votequorum.o corosync-util.o corosync-schedwrk.o
corosync-main.o corosync-apidef.o corosync-quorum.o corosync-icmap.o
corosync-timer.o corosync-ipc_glue.o corosync-service.o corosync-logconfig.o
corosync-totemconfig.o ./.libs/libtotem_pg.so -lnss3 -lnssutil3 -lsmime3 -lssl3
-lplds4 -lplc4 -lnspr4 ../common_lib/.libs/libcorosync_common.so -lqb -ldl -lrt
-lpthread -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed /usr/lib/gcc/i586-gnu/5/crtendS.o
/usr/lib/gcc/i586-gnu/5/../../../i386-gnu/crtn.o
/usr/bin/ld.bfd: BFD (GNU Binutils for Debian) 2.25.90.20151125 assertion fail
../../bfd/elf32-i386.c:5297
collect2: error: ld returned 1 exit status

libc.so you already have in more_libs.tar.gz as: libc.so.0.3 I'll also attach
crtendS.o and crtn.o separately. Anything else?

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #10 from Svante Signell  ---
Do you need the gcc libs too?

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #11 from H.J. Lu  ---
(In reply to Svante Signell from comment #10)
> Do you need the gcc libs too?

Yes.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #12 from H.J. Lu  ---
(In reply to Svante Signell from comment #9)
> libc.so you already have in more_libs.tar.gz as: libc.so.0.3 I'll also
> attach crtendS.o and crtn.o separately. Anything else?

Isn't libc.so a linker script? If it is, I need it and what it includes.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #13 from Svante Signell  ---
Created attachment 8822
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8822&action=edit
More libs and libc.so

gcc libs and l/usr/lib/i386-gnu/libc.so. It is a linker script.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #14 from Svante Signell  ---
Created attachment 8823
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8823&action=edit
libcrt_nonshared.a

Hopefully the last needed library.

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #15 from H.J. Lu  ---
(In reply to Svante Signell from comment #14)
> Created attachment 8823 [details]
> libcrt_nonshared.a
> 
> Hopefully the last needed library.

I need

/usr/lib/gcc/i586-gnu/5/../../../i386-gnu/Scrt1.o
/usr/lib/gcc/i586-gnu/5/../../../i386-gnu/crti.o
/usr/lib/gcc/i586-gnu/5/crtbeginS.o

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #16 from Svante Signell  ---
Created attachment 8824
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8824&action=edit
As requested

Hopefully this is it. Good luck!

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #17 from H.J. Lu  ---
(In reply to Svante Signell from comment #16)
> Created attachment 8824 [details]
> As requested
> 
> Hopefully this is it. Good luck!

I need libz.so.1.

-- 
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/19323] New: BinUtils-2.25 Objdump Heap Overflow Vulnerability Notification

2015-12-01 Thread kshah at fortinet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19323

Bug ID: 19323
   Summary: BinUtils-2.25 Objdump Heap Overflow Vulnerability
Notification
   Product: binutils
   Version: 2.25
Status: NEW
  Severity: critical
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: kshah at fortinet dot com
  Target Milestone: ---

Created attachment 8825
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8825&action=edit
PoC File.

The PoC file is attached with this post.

Use the Objdump tool with -s parameter to open the PoC file and with output
destination set as /dev/null in order to reproduce this vulnerability.

I have tested it on the Kali 2.0 platform.

-- 
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/19323] BinUtils-2.25 Objdump Heap Overflow Vulnerability Notification

2015-12-01 Thread kshah at fortinet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19323

Kushal Shah  changed:

   What|Removed |Added

 CC||kshah at fortinet dot com

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #18 from Svante Signell  ---
Created attachment 8826
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8826&action=edit
libz.so

libz.so.1.2.8

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

H.J. Lu  changed:

   What|Removed |Added

Version|2.25|2.26
   Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #19 from H.J. Lu  ---
[hjl@gnu-6 simple]$ cat x.c
int __attribute__((section("my_section"))) a[2] = {0x1234, 0x5678};

extern int __start_my_section;

int
foo ()
{
   int* ap = &__start_my_section;
   return ap[0];
}
[hjl@gnu-6 simple]$ cat z.c
int __attribute__((section("my_section"))) a[2] = {0x1234, 0x5678};

extern int __start_my_section;

int
_start ()
{
   int* ap = &__start_my_section;
   return ap[0];
}
[hjl@gnu-6 simple]$ make
gcc -m32 -fPIC -O2   -c -o z.o z.c
gcc -m32 -fPIC -O2   -c -o x.o x.c
../ld -shared -m elf_i386  -o x.so x.o
../ld -pie -m elf_i386  -o z z.o x.so
../ld: BFD (GNU Binutils) 2.26.51.20151201 assertion fail
/export/gnu/import/git/sources/binutils-gdb/bfd/elf32-i386.c:5297
Makefile:11: recipe for target 'z' failed
make: *** [z] Error 1
[hjl@gnu-6 simple]$

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread svante.signell at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #20 from Svante Signell  ---
Confirmed:
/usr/bin/ld.bfd -shared -m elf_i386  -o x.so x.o
/usr/bin/ld.bfd  -pie -m elf_i386  -o z z.o x.so
/usr/bin/ld.bfd: BFD (GNU Binutils for Debian) 2.25.90.20151125 assertion fail
../../bfd/elf32-i386.c:5297

-- 
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/19319] Regression: ld.bfd: 2.25.90.20151125 assertion fail ../../bfd/elf32-i386.c:5297

2015-12-01 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19319

--- Comment #21 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ead3d5427a2df5e33316d4ad045510c1d2078c2a

commit ead3d5427a2df5e33316d4ad045510c1d2078c2a
Author: H.J. Lu 
Date:   Tue Dec 1 14:45:51 2015 -0800

Properly check symbol defined by assignment in linker script

Symbol defined by a linker assignment may have type bfd_link_hash_new
or bfd_link_hash_undefined.  And h->def_regular is always set.
elf_i386_convert_load and elf_x86_64_convert_load should check
h->def_regular as well as bfd_link_hash_undefined and bfd_link_hash_new
to see if a symbol is defined by a linker script.

bfd/

PR ld/19319
* elf32-i386.c (elf_i386_convert_load): Check h->def_regular
instead of bfd_link_hash_new.
* elf64-x86-64.c (elf_x86_64_convert_load): Likewise.  Skip
relocation overflow for bfd_link_hash_undefined and
bfd_link_hash_new if h->def_regular is set.

ld/testsuite/

PR ld/19319
* ld-i386/i386.exp: Run pr19319 test.
* ld-x86-64/x86-64.exp: Likewise.
* ld-i386/pr19319.dd: New file.
* ld-i386/pr19319a.S: Likewise.
* ld-i386/pr19319b.S: Likewise.
* ld-x86-64/pr19319.dd: Likewise.
* ld-x86-64/pr19319a.S: Likewise.
* ld-x86-64/pr19319b.S: Likewise.

-- 
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/19323] [FG-VD-15-113] BinUtils-2.25 Objdump Heap Overflow Vulnerability Notification

2015-12-01 Thread kshah at fortinet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19323

Kushal Shah  changed:

   What|Removed |Added

Summary|BinUtils-2.25 Objdump Heap  |[FG-VD-15-113]
   |Overflow Vulnerability  |BinUtils-2.25 Objdump Heap
   |Notification|Overflow Vulnerability
   ||Notification

-- 
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/19323] [FG-VD-15-113] BinUtils-2.25 Objdump Heap Overflow Vulnerability Notification

2015-12-01 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19323

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||amodra at gmail dot com
 Resolution|--- |INVALID

--- Comment #1 from Alan Modra  ---
This is not a "vulnerability".  You have an object file which has been
corrupted to say it has 2147483648 program headers.  Trying to allocate
2147483648*32 bytes of course fails, no surprise there.  objdump correctly
returns an out of memory error.

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