Re: [incomplete patch] Get objdump to report exception tables for ARM/SH4 correctly

2008-04-03 Thread Danny Backx
On Wed, 2008-04-02 at 16:47 +0100, Nick Clifton wrote:
> > I've tried to tackle the conditional compilation part, and would like
> > your renewed input on it, I may have missed some points. Naming for
> > instance.
> 
> 
> Naming was mostly OK.  There were two problems. 
> pe_print_compressed_pdata() should really be called 
> pe_print_ce_compressed_pdata() since it assumes 
> _IMAGE_CE_RUNTIME_FUNCTION_ENTRY formatted data right ?  One day someone 
> might want to write a MIPS version of this function, so we will need a

Looks like you got interrupted while writing this sentence. Not sure
what you mean.

> Secondly you did not provide a default definition of bfd_pe_print_pdata, 
> so the PE ports which do not use this new feature will not build.  Try 
> configuring a binutils build with "--enable-targets=all" to see this 
> happening.

Didn't know about that. I've used it, and added one or more lines to 30
other .c files. In most cases this is just

#define bfd_pe_print_pdata NULL

That addresses the build problems with "--enable-targets=all". This is
what you wanted me to do, right ?

> Here are two other things however which I think you should also fix:

I'll address the other points in your message too.

One more question though. I moved my pe_print_ce_compressed_pdata
function into pe-arm-wince.c , it was in peXXigen.c in my initial patch.
The peXXigen.c doesn't seem right for this because this function is not
to be treated with the XX replacement stuff. However, pe-arm-wince.c
doesn't seem right either because the pe_print_ce_compressed_pdata
function is to be used both for ARM and for SH.

So where should I put it (and its helper functions) ?

Thanks for your help !

Danny

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info



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


[Bug ld/6027] Bootstrap of combined gcc + binutils, with --enable-shared, with sysroot fails

2008-04-03 Thread bonzini at gnu dot org


-- 
   What|Removed |Added

 CC||bonzini at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=6027

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/6027] New: Bootstrap of combined gcc + binutils, with --enable-shared, with sysroot fails

2008-04-03 Thread oblivian at users dot sourceforge dot net
Hello,

This bug is a continuation from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532 and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35752 and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35804

It appears that native retargeting of the gcc compiler is not supported in the
4.3/4.4 series in favor of the sysroot option.  When trying to build a pass 1
compiler with combined gcc and binutils in a single directory, ld is appending
an extra sysroot prefix in the linker during libgcc linking.

The entire glibc and gcc+binutils toolchain is being installed in a non root
directory that will eventually be used to chroot with and allow for follow on
installation of a host system in the real root directory without overwriting any
tool binary files.

Whether the patch in http://sourceware.org/bugzilla/show_bug.cgi?id=4966 is
correct or not, when applied to the combined toolchain source, it allows the
bootstrap to complete successfully.

-- 
   Summary: Bootstrap of combined gcc + binutils, with --enable-
shared, with sysroot fails
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: oblivian at users dot sourceforge dot net
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=6027

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread ktietz at onevision dot com

--- Additional Comments From ktietz at onevision dot com  2008-04-03 14:46 
---
Committed at revision 1.103


-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/4966] linker incorrectly prepends sysroot to absolute path

2008-04-03 Thread drow at sources dot redhat dot com

--- Additional Comments From drow at sources dot redhat dot com  2008-04-03 
13:45 ---
No, this bug is RESOLVED/INVALID.  In the configuration described in the initial
report, glibc is configured incorrectly for the way it is being used; and the
patch is incorrect.

If you have a different problem, please report it in a new bug.


-- 
   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=4966

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread ktietz at onevision dot com

--- Additional Comments From ktietz at onevision dot com  2008-04-03 13:35 
---
Created an attachment (id=2349)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2349&action=view)
Fix for problem

The rva's offset for IAT and thunk was not set to PE_IDATA4_SIZE or
PE_IDATA5_SIZE. This results in wrong values read on 4 byte offset.

-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |ktietz at onevision dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread pluto at agmk dot net


-- 
   What|Removed |Added

   GCC host triplet||x86_64-gnu-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2008-04-03 11:15 ---
Created an attachment (id=2348)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2348&action=view)
dep walker report.

the a.exe's import table looks broken.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2008-04-03 10:22 ---
$ x86_64-pc-mingw32-gcc -v
Using built-in specs.
Target: x86_64-pc-mingw32
Configured with: ../gcc/configure --prefix=/tmp/root-x86_64-pc-linux
--with-sysroot=/tmp/root-x86_64-pc-linux --target=x86_64-pc-mingw32
Thread model: win32
gcc version 4.4.0 20080402 (experimental) (GCC)


this is a mingw64 toolchain snapshot from sf.net.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2008-04-03 10:19 ---
Created an attachment (id=2347)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2347&action=view)
testcase


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/6026] New: objdump craches on simple *.exe / application doesn't work.

2008-04-03 Thread pluto at agmk dot net
$ x86_64-pc-mingw32-objdump -p a.exe

(...)
DLL Name: b.dll
vma:  Hint/Ord Member-Name Bound-To
Segmentation fault


Program received signal SIGSEGV, Segmentation fault.
bfd_getl16 (p=0x1e63ad0) at ../../src/bfd/libbfd.c:559
559 ../../src/bfd/libbfd.c: No such file or directory.
in ../../src/bfd/libbfd.c
(gdb) bt
#0  bfd_getl16 (p=0x1e63ad0) at ../../src/bfd/libbfd.c:559
#1  0x004486b5 in pe_print_idata (abfd=0x1e67090, vfile=) at pex64igen.c:1302
#2  0x00448fa1 in _bfd_pex64_print_private_bfd_data_common
(abfd=0x1e67090, vfile=0x2aaad000) at pex64igen.c:1976
#3  0x00452449 in pe_print_private_bfd_data (abfd=0x1e63ad0,
vfile=0x2aaad000) at ../../src/bfd/peicode.h:335
#4  0x004043bc in dump_bfd (abfd=0x1e67090) at
../../src/binutils/objdump.c:2440
#5  0x00404bff in display_bfd (abfd=0x1e67090) at
../../src/binutils/objdump.c:3004
#6  0x00404d48 in display_file (filename=0x7fffba1799b4 "a.exe",
target=) at ../../src/binutils/objdump.c:3065
#7  0x0040534c in main (argc=3, argv=0x7fffba177868) at
../../src/binutils/objdump.c:3311

and the major thing, the a.exe doesn't work on winxp64.
it should print hello world but i see nothing on the windows console.

-- 
   Summary: objdump craches on simple *.exe / application doesn't
work.
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: pluto at agmk dot net
CC: bug-binutils at gnu dot org
GCC target triplet: x86_64-pc-mingw32


http://sourceware.org/bugzilla/show_bug.cgi?id=6026

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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