[Bug ld/19541] Format reader for ILF format (used by MSVC-generated import libraries) does not properly handle data imports

2016-01-30 Thread njs at pobox dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19541 --- Comment #1 from Nathaniel J. Smith --- Created attachment 8943 --> https://sourceware.org/bugzilla/attachment.cgi?id=8943&action=edit First attempt at a patch -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/19541] New: Format reader for ILF format (used by MSVC-generated import libraries) does not properly handle data imports

2016-01-30 Thread njs at pobox dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19541 Bug ID: 19541 Summary: Format reader for ILF format (used by MSVC-generated import libraries) does not properly handle data imports Product: binutils Version:

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 --- Comment #11 from Alan Modra --- Ah, never mind about S_ISLNK. You're using stat, not lstat. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #10

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hpa at zytor dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #13 from hpa at zytor dot com --- On January 30, 2016 4:19:57 PM PST, "hjl.tools at gmail dot com" wrote: >https://sourceware.org/bugzilla/show_bug.cgi?id=19538 > >--- Comment #12 from H.J. Lu --- >(In reply to h...@zytor.com fro

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #12 from H.J. Lu --- (In reply to h...@zytor.com from comment #11) > > But that is not built in core/bios. core/Makefile has # Set up the NASM and LD options for the architecture NASM_ELF = "unknown" LD_PIE = "unknown" ifeq ($(A

[Bug ld/19539] ld: Segmentation fault (core dumped)

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19539 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Version|unspecified

[Bug ld/19539] ld: Segmentation fault (core dumped)

2016-01-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19539 --- Comment #1 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=d9e3b590692e62d83c21e39ec6641c4c09e70e4c commit d9e3b590692e62d83c21e39ec6641c4c

[Bug ld/19539] New: ld: Segmentation fault (core dumped)

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19539 Bug ID: 19539 Summary: ld: Segmentation fault (core dumped) Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hpa at zytor dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #11 from hpa at zytor dot com --- On January 30, 2016 2:18:51 PM PST, "hjl.tools at gmail dot com" wrote: >https://sourceware.org/bugzilla/show_bug.cgi?id=19538 > >--- Comment #8 from H.J. Lu --- >(In reply to h...@zytor.com from

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 H.J. Lu changed: What|Removed |Added Attachment #8939|0 |1 is obsolete|

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #8 from H.J. Lu --- (In reply to h...@zytor.com from comment #6) > > > > >ldlinux.elf shouldn't be build pie, so that would explain why. > > What I genuinely can't remember offhand is whether or not it is a > combination of pic an

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #7 from H.J. Lu --- (In reply to h...@zytor.com from comment #5) > > ldlinux.elf shouldn't be build pie, so that would explain why. It was changed to PIE by commit 38e58635d3868c23537fc5dce87b152a52df34ad Author: chandramouli na

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hpa at zytor dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #6 from hpa at zytor dot com --- On January 30, 2016 12:53:18 PM PST, hpa at zytor dot com wrote: >https://sourceware.org/bugzilla/show_bug.cgi?id=19538 > >--- Comment #5 from hpa at zytor dot com --- >On January 30, 2016 9:08:32

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread dave.anglin at bell dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 --- Comment #9 from dave.anglin at bell dot net --- On 2016-01-30, at 1:14 PM, John David Anglin wrote: > It seems to me we either have to match x86 behaviour, or the linker should > not allow writing > to a non-regular file. Something like

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hpa at zytor dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #5 from hpa at zytor dot com --- On January 30, 2016 9:08:32 AM PST, "hjl.tools at gmail dot com" wrote: >https://sourceware.org/bugzilla/show_bug.cgi?id=19538 > >--- Comment #3 from H.J. Lu --- >(In reply to H.J. Lu from comment

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread dave.anglin at bell dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 --- Comment #8 from dave.anglin at bell dot net --- On 2016-01-30, at 8:51 AM, sch...@linux-m68k.org wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=19526 > > --- Comment #7 from Andreas Schwab --- > The linker should not allow writ

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #4 from H.J. Lu --- Created attachment 8939 --> https://sourceware.org/bugzilla/attachment.cgi?id=8939&action=edit Try this syslinux patch Please try this and verify if it generates a working syslinux. -- You are receiving thi

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 --- Comment #3 from H.J. Lu --- (In reply to H.J. Lu from comment #2) > pfx_compressed, which is __pm_code_lma, is wrong: > > section .prefix nowrite progbits align=16 > pfx_start dd _start ; Start

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 H.J. Lu changed: What|Removed |Added Summary|binutils (objcopy?) >= 2.26 |ld >= 2.26 breaks syslinux

[Bug ld/19538] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread pomidorabelisima at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 poma changed: What|Removed |Added CC||hpa at zytor dot com -- You are receiving thi

[Bug ld/19538] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 H.J. Lu changed: What|Removed |Added Component|binutils|ld --- Comment #2 from H.J. Lu --- pfx_com

[Bug binutils/19538] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #1 f

[Bug binutils/19538] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread pomidorabelisima at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 poma changed: What|Removed |Added CC||nickc at redhat dot com -- You are receiving

[Bug binutils/19538] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread pomidorabelisima at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 poma changed: What|Removed |Added See Also||http://bugs.debian.org/8064

[Bug binutils/19538] New: binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

2016-01-30 Thread pomidorabelisima at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19538 Bug ID: 19538 Summary: binutils (objcopy?) >= 2.26 breaks syslinux (bios) build Product: binutils Version: 2.27 (HEAD) Status: NEW Severity: normal

[Bug binutils/19501] binutils should be updated to support additional target

2016-01-30 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19501 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 --- Comment #7 from Andreas Schwab --- The linker should not allow writing the output to a non-regular file in the first place. Changing the behaviour depending on the type of output file would be wrong. -- You are receiving this mail becau

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread deller at gmx dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 --- Comment #6 from Helge Deller --- Andreas wrote: > I think ld should error out if the output isn't a regular file. It currently does error out with a "final link failed: File truncated" error in that case. But that's actually the problem.

[Bug ld/19526] Using "gcc -o /dev/null" gives "ld: final link failed: File truncated" error

2016-01-30 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19526 --- Comment #5 from Andreas Schwab --- I think ld should error out if the output isn't a regular file. There are probably other cases where the linker needs to reread what it has written out. -- You are receiving this mail because: You are