[Bug binutils/6789] (cygwin) objcopy converts PE to invalid ELF

2008-09-29 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2008-09-29 
08:50 ---
Yes, it seems that binutils-2.15 created ELF program headers for you.

-- 
   What|Removed |Added

 Status|WAITING |NEW
   Last reconfirmed|-00-00 00:00:00 |2008-09-29 08:50:09
   date||


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

--- 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/6789] (cygwin) objcopy converts PE to invalid ELF

2008-09-29 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2008-09-29 
09:16 ---
We stopped making headers during objcopy with
http://sourceware.org/ml/binutils/2006-06/msg00293.html

-- 


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

--- 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/6789] (cygwin) objcopy converts PE to invalid ELF

2008-09-29 Thread de at iru dot ch

--- Additional Comments From de at iru dot ch  2008-09-29 09:35 ---
Is there a workaround to make objcopy create program headers again?

I noticed other users have the same problem:
http://sourceware.org/ml/binutils/2006-10/msg00034.html

The man page states that "objcopy should be able to copy a fully linked file 
between any two formats". IMHO this is currently not the case.

-- 


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

--- 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/6789] (cygwin) objcopy converts PE to invalid ELF

2008-09-29 Thread amodra at bigpond dot net dot au


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
   |redhat dot com  |dot au


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

--- 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/6789] (cygwin) objcopy converts PE to invalid ELF

2008-09-29 Thread amodra at bigpond dot net dot au


-- 
   What|Removed |Added

 Status|NEW |ASSIGNED
   Last reconfirmed|2008-09-29 08:50:09 |2008-09-29 12:33:59
   date||


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

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


Re: [PATCH] Properly guard against a call without parameters.

2008-09-29 Thread Nick Clifton

Hi Pascal,


Calling windres without parameter was crashing (segmentation
violation).


Really - did you check this with the current version of the windres 
sources in the mainline of the binutils repository ?  I tried and it did 
not seg-fault for me.


Windres is supposed to be able to be invoked without any parameters.  In 
this case it reads from stdin and writes to stdout.


What type of host machine were you using when you invoked windres ? 
Plus how did you invoke it ?


Cheers
  Nick


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


[Bug binutils/6914] global symbol alignment is not covered at all

2008-09-29 Thread nickc at redhat dot com

--- Additional Comments From nickc at redhat dot com  2008-09-29 13:50 
---
Hi Gianluigi,

This problem has already been reported as a gcc bug (PR 37216).  See:

  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216

I posted a patch there which does not need any modifications to binutils, but
apparently it is causing a bootstrap failure, so I will have to investigate 
further.

Cheers
  Nick



-- 
   What|Removed |Added

 Status|NEW |SUSPENDED


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

--- 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/6789] (cygwin) objcopy converts PE to invalid ELF

2008-09-29 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2008-09-29 
14:12 ---
http://sourceware.org/ml/binutils/2008-09/msg00229.html
http://sourceware.org/ml/binutils-cvs/2008-09/msg00149.html

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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

--- 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 gas/6878] '% found after symbol for non-H-TICK-HEX tokens

2008-09-29 Thread nickc at redhat dot com

--- Additional Comments From nickc at redhat dot com  2008-09-29 14:22 
---
Hi Guys,

  I have now checked my patch in together with this changelog entry.

Cheers
  Nick

gas/ChangeLog
PR 6878
* app.c (do_scrub_chars): Only issue warnings about tick
characters detected in symbol strings if hex ticks are supported.

-- 
   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED


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

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


Re: how to install binutils

2008-09-29 Thread Nick Clifton

Hi Ron,


Just got a copy of binutils from cygwin, and I'm trying to figure out how to 
install it.
I want to build a version of ld that runs on the PC and deals with elf object 
files for the x86_64 platform.
What I actually tried was:
./configure --target=amd64
make all-ld
That gave an error message.  It looks like something translates "amd64" into 
"x64_86_pc_none", and then something complains that "x86_64_pc_none" isn't supported.


Try:

  ./configure --target=x86_64-pc-linux-gnu

Note there is no support for 64-bit cygwin binaries in the linker at the 
moment, so I have assumed that you are trying to deal with Linux 
targeted ELF object files.


Cheers
  Nick




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


[Bug binutils/6922] New: objdump fails to read debugging stabs from SUNPro C++ compiler

2008-09-29 Thread andrew at ishiboo dot com
Also noted here:
http://osdir.com/ml/gnu.binutils/2002-08/msg00624.html

If the SUNPro C++ compiler is used with the "-xs -g" (embed debugging symbols in
executable, debugging enabled) options, 'objdump -g' fails to output the
debugging stabs:

$ objdump -g foo.o
foo.o: file format elf32-sparc

Bad stab: uv4;0;32
Last stabs entries before error:
n_type n_desc n_value  string
1980   short:t(0,2)=bs2;0;16
1980   int:t(0,3)=bs4;0;32
1980   long:t(0,4)=bs4;0;32
1980   long long:t(0,5)=bs8;0;64
1980   unsigned char:t(0,6)=buc1;0;8
1980   unsigned short:t(0,7)=bu2;0;16
1980   unsigned:t(0,8)=bu4;0;32
1980   unsigned long:t(0,9)=bu4;0;32
1980   unsigned long long:t(0,10)=bu8;0;64
1980   signed char:t(0,11)=bsc1;0;8
1980   wchar_t:t(0,12)=buc4;0;32
1980   void:t(0,13)=bs0;0;0
1980   float:t(0,14)=R1;4
1980   double:t(0,15)=R2;8
1980   long double:t(0,16)=R6;16
1980   ...:t(0,17)=buv4;0;32

-- 
   Summary: objdump fails to read debugging stabs from SUNPro C++
compiler
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: andrew at ishiboo dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: sparc-sun-solaris2.9
  GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9


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

--- 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/6922] objdump fails to read debugging stabs from SUNPro C++ compiler

2008-09-29 Thread andrew at ishiboo dot com

--- Additional Comments From andrew at ishiboo dot com  2008-09-29 20:25 
---
$ cat /tmp/foo.cc
int main(void) {
return 0;
}
$ CC -xs -g -o /tmp/foo /tmp/foo.cc
$ objdump -g /tmp/foo


-- 


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

--- 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/6922] objdump fails to read debugging stabs from SUNPro C++ compiler

2008-09-29 Thread andrew at ishiboo dot com

--- Additional Comments From andrew at ishiboo dot com  2008-09-29 20:27 
---
Created an attachment (id=2968)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2968&action=view)
Solaris binary exhibiting the problem in the description

Run 'objdump -g' on this file to reproduce the problem.

-- 


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

--- 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/6922] objdump fails to read debugging stabs from SUNPro C++ compiler

2008-09-29 Thread andrew at ishiboo dot com

--- Additional Comments From andrew at ishiboo dot com  2008-09-29 21:40 
---
Created an attachment (id=2970)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2970&action=view)
Patch to add "cbv" intrinsic encoding parsing support.

This information was gleaned from the following OpenSolaris code:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/tools/ctf/cvt/ctf.c#281

-- 


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

--- 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/6924] New: ld does not understand DWARF version 3 when trying to get a source line number

2008-09-29 Thread geir at cray dot com
Using ld version 2.18 when linking a PGI 7.2-5 compiled program, I see the
following dwarf error:

$ cat datatypes.module.f90
module datatypes
  integer, parameter :: short = 1
end module datatypes
$ cat main.f90
program TEST
  use datatypes
end program TEST
$ pgf90 -Mdwarf3 -g -c datatypes.module.f90   <
$ pgf90 -Mdwarf3 -g -c main.f90
$ pgf90 -Mdwarf3 main.o
/usr/bin/ld: Dwarf Error: found dwarf version '3', this reader only handles
version 2 information.
main.o:(.debug_info+0x74): undefined reference to `..Dm_datatypes'
$

The "undefined reference" error is a PGI compiler error, so that can be ignored.

The message: "Dwarf Error: found dwarf version '3', this reader only handles
version 2 information." is occurring when the loader is trying to get the line
number for the "undefined reference" error.  'ld' should at least be able to get
the source line number for a code in Dwarf 3 format.

-- 
   Summary: ld does not understand DWARF version 3 when trying to
get a source line number
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: geir at cray dot com
CC: bug-binutils at gnu dot org


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

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


Re: [PATCH] Properly guard against a call without parameters.

2008-09-29 Thread Pascal Obry

Hi Nick,

> Really - did you check this with the current version of the windres
> sources in the mainline of the binutils repository ?  I tried and it did
> not seg-fault for me.

No, in fact this was tested on the 2.18 branch. Sorry I should have
tested that on latest version!

> Windres is supposed to be able to be invoked without any parameters.  In
> this case it reads from stdin and writes to stdout.

Right. I missed that.

> What type of host machine were you using when you invoked windres ? Plus
> how did you invoke it ?

I'm on Windows, windres build for the mingw system and invoked:

   $ windres

Anyway if this works fine on Windows XP on current version this can be
ignored. Sorry for the noise.

-- 
  Pascal Obry
  --
  gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



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