[Bug ld/4210] PE-COFF can't handle holes between sections

2007-03-17 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-17 21:51 --- Created an attachment (id=1627) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1627&action=view) A patch This patch works for testcase. I got ./objdump -ph image_size image_size: file format pei-i386 Ch

[Bug ld/4210] New: PE-COFF can't handle holes between sections

2007-03-17 Thread hjl at lucon dot org
When a file is converted from ELF to PE-COFF, there may be holes between sections due to different alignment. But _bfd_XXi_swap_aouthdr_out in peXXigen.c doesn't take into this into account when computing size of image. It just sums sizes of all sections. bash-3.1$ cat image_size.s .text

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-17 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-17 16:58 --- Please provide all input files needed to reproduce the problem with a cross linker. -- What|Removed |Added --

[Bug binutils/4110] Broken object file crashes nm

2007-03-17 Thread sliedes at cc dot hut dot fi
--- Additional Comments From sliedes at cc dot hut dot fi 2007-03-17 13:48 --- Created an attachment (id=1626) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1626&action=view) One more test case With patch.3 it's starting to look quite robust, I had to try a lot of things to bre