Re: strip doesn't maintain /LARGEADDRESSAWARE flag

2005-02-11 Thread Nick Clifton
Hi Jan, 1. Please could you create a bugzilla issue to track this bug. 2. Please could you supply a *small* test binary with the LARGEADDRESSAWARE flag set. Many of us, including myself, do not have Microsoft's Visual Stdio installed and so we are unable to create such a binary ourselves.

Re: [Bug binutils/716] strip doesn't maintain /LARGEADDRESSAWARE flag (mingw build, Windows 2000)

2005-02-14 Thread Nick Clifton
Hi Jan, Even more KISS-like: if (pe_data (obfd) != NULL && pe_data (ibfd) != NULL && (pe_data (obfd)->real_flags & 0x20)) pe_data (obfd)->real_flags |= 0x20; Except of course that you want to check for the presence of the flag in the *input* bfd and then copy it to the output bfd

Re: GNU ld to support incremental linking?

2005-02-18 Thread Nick Clifton
Hi Brian, Anyone have any information about what work may have been done on a true incremental link mode? Sorry - as far as I know noone has done any work on this. Anyone have any comments, wish lists, or warnings about how to go about potentially implementing it? There are probably several resea

Re: [Bug binutils/750] Addr2line reports function name that is inconsistent with file/line info for C++

2005-02-21 Thread Nick Clifton
Hi Fred, Proposed patch to fix the reported problem This looks fine. Please apply. If you can think of a way to create a test case for it, that would be good too. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/ma

Re: [Bug ld/754] New: --image-base / --enable-auto-image-base silently disregarded if .def used

2005-02-21 Thread Nick Clifton
Hi, If a .def file is used to link a DLL, the --image-base and --enable-auto-image-base options are silently disregarded, even if the .def file is missing a BASE directive. The correct behavior should probably be that --image-base should override the .def file, and --enable-auto-image-base should o

Re: [Bug ld/753] New: ld 2.13.90 from mingw 3.3.1 cores on malformatted .def file

2005-02-21 Thread Nick Clifton
Hi, when linking a DLL with a .DEF file, if the BASE directive in the .DEF file is not of the form "BASE=0x1c00" but e.g. "BASE 0x1c00" or some other malformatting, ld crashes with a memory access violation. Please could you try using the current binutils sources from the mainline of the C

Re: [Bug binutils/760] New: ar (version 050223 20050223) segfaults at line 4422

2005-02-28 Thread Nick Clifton
Hi Eric, GCC 3.4.3 was used to build binutils and the object files below. This problem is reproducable in binutils 040922. Does the bug happen if you use the current mainline sources from the binutils CVS repository ? I will check to see if this happens on AIX 5.2 and 5.3. Does it ? The object fi

Re: xregex2.h:549 "Unexpected text integer"

2005-03-01 Thread Nick Clifton
Hi Clint, I'm getting the following error trying to install binutils-2.15 on z/os 1.4: ERROR CCN3275 ./../include/xregex2.h:549 Unexpected text integer constant enco untered. WARNING CCN3213 ./config.h:368 Macro name in

Re: bug report

2005-03-18 Thread Nick Clifton
Hi Bob, I have received this bug using GNAT GDB 3.15p. Is there anything I can do to get more information on what's failing? (ie environment variable) BFD: BFD internal error, aborting at coffcode.h line 749 in styp_to_sec_flags BFD: Please report this bug. You can run the program inside GDB. You

Re: [Bug gas/795] UCN problems exposed by GCC tests: gcc.dg/ucnid-2.c, 3, 4 and 6.

2005-03-18 Thread Nick Clifton
Hi Hans-Peter, In response to comment #1, I would expect GAS to assemble it because it's generated by GCC (presumed correct). My current theory is that it must be a gcc bug. But then I could just be passing the buck... Since you have a mmix-knuth-mmixware toolchain available, I suggest looking

Re: 'objcopy --remove-leading-char' removes all exports from library

2005-03-21 Thread Nick Clifton
Hi Benjamin, ObjCopy version 2.14.90 objcopy --remove-leading-char libmqrt.a libmqrt2.a Now if I do a dumpbin /exports libmqrt2.a , all the exports are gone! Could you try repeating this test using the latest sources in the binutils CVS repository - I think that the problem might be fixed there.

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-22 Thread Nick Clifton
Hi Vladimir, After patch http://sourceware.org/ml/binutils-cvs/2005-03/msg00191.html binutils build broken at FreeBSD 5.3 Build terminate with message: In file included from /usr/home/wanderer/pkg/build/binutils/src/src/binutils/size.c:34: /usr/home/wanderer/pkg/build/binutils/src/src/binutils/.

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-23 Thread Nick Clifton
Hi Vladimirm, Attached patch fix warning. Thanks. I don't known is proposed patch correct. But I check FreeBSD CVS and found that starting from 1994 FreeBSD have getopt prototype same as in binutils getopt.h. Well that should be long enough. I think that the patch is OK, but there are two proble

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-24 Thread Nick Clifton
Hi Vladimir, ian> Sorry, this patch is not OK. It will just lead us down the path of ian> increasing the #ifdef over and over again. The question here is why ian> HAVE_DECL_GETOPT is not defined. ian> ian> Looking at gcc, I would say that the binutils configure.in file should ian> do the equivale

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-29 Thread Nick Clifton
Hi Vladimir, Results of testting: And then configure part work fine at FreeBSD but binutils/config.h not #included in addr2line.c Hmm, but it does #include "bucomm.h" which then #include's "config.h". It turns out however that it incldues it too late (ie after "bfd.h"). So please try the attache

Re: Unix "time" returns 43.833s. "gprof" returns 438 seconds.

2005-03-29 Thread Nick Clifton
Hi Jason, Unix "time" returns 43.833s. gprof returns 438 seconds. Either I'm going crazy or gprof is reporting a 10x increase? What could be causing this? A bug of some kind. Presumably in gprof. user0m43.646s Each sample counts as 0.01 seconds. % cumulative self self t

Re: [Bug ld/805] New: linking error: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output

2005-03-29 Thread Nick Clifton
Hi dorchen1611, On creating a .lx File for hms-8300 microprocessor (Lego robot) following linker error occurs: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output. Please could you supply a *small* self-contained test case that reproduces this problems and instructions on how to run th

Re: Fix typo in dwarf2.c and remove some dead code

2005-03-29 Thread Nick Clifton
Hi Fred, 2005-03-24 Fred Fish <[EMAIL PROTECTED]> * dwarf2.c (struct comp_unit): Fix typo. (scan_unit_for_functions): Remove unused local variable "name" and dead code that set it. Approved - please apply. Cheers Nick ___ bug-

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-31 Thread Nick Clifton
Hi Vladimir, addr2line.c compile with addition patch Great - in which case I have checked both patches in together with this ChangeLog entry: binutils/ChangeLog 2005-03-31 Nick Clifton <[EMAIL PROTECTED]> * configure.in: Add a check for providing a prototype for getopt()

Re: [Bug binutils/806] Addr2line ignores the DWARF DW_AT_ranges attributes

2005-04-01 Thread Nick Clifton
Hi Fred, Proposed patch to fix the reported problem This patch is approved - please apply. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils

Re: BinUtils built with arm and elf bfd support

2005-04-04 Thread Nick Clifton
Hi Raymond, I'm trying to build the binutils and gcc wirh arm and elf support. I have tried the following targets with no success: --target=arm-*-elf* --target=arm-*-elf --target=arm9e-*-elf The build and host system is i686-pc-cygwin. I hope that you were not literally including those asterisks as

Re: need help

2005-04-05 Thread Nick Clifton
Hi Kiran, i wanted to run a small program on MPC8560 processor i wrote a small application and i cross compile with PPC_82xx-gcc i got a obj file as a.out I hope that you mean that you obtained an executable called "a.out". An object file is just the output of the assembler. It has not

Re: [Bug binutils/835] New: Fails to build in 64bit mode

2005-04-11 Thread Nick Clifton
Hi Francois, binutils-2.15 does not compile in 64bit mode due to the fact that, starting in AIX5.2, in 64bit, we do not support the old format of vm-info and core-dump. I made changes in bfd/rs6000-core.c that I can provide you with, basically #ifdef ing out the references to the "old" part of the

Re: [Bug gas/818] New: error handling %farg[0-4] registers

2005-04-11 Thread Nick Clifton
happy with this. This bug is present in binutils-2.15 and in the binutils-050404 snapshot I just tested. The patch below appears to fix this problem, but I am not an expert on the HPPA instruction set - David - do you think that the patch is OK ? Cheers Nick gas/ChangeLog 2005-04-11 Nick Clifto

Re: assemby code msp430

2005-04-12 Thread Nick Clifton
Hi Aditya, i am using the msp430-as assembler with -mmcu=msp430x147. the above controller has a code address space from 0x8000. but whenever i include ".org 0x8000" at the beginning of the code and follow it with a mov command like mov #0x5A80,0x0120, i get the output "operand out of range: 32784

Re: "No room for program headers" strikes again

2005-04-13 Thread Nick Clifton
Hi Stelios, Sorry. It's a suse 8.1 (quite old) with gcc 3.4-core compiled from source, at x86. ld --version gives 2.12.90.0.15 20020717 (SuSE) The code I'm trying to compile is made with a code generator and it's indeed rather huge. It has thousands of functions in one huge file,several sect

Re: [Bug binutils/841] mips64-elf-readelf was crashed by EABI64 binary.

2005-04-13 Thread Nick Clifton
Hi Monaka, Do you have a small testcase with which we can reproduce this failure and test any fixes ? Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils

Re: [Bug gas/845] New: GAS .rept pseudo op-code

2005-04-13 Thread Nick Clifton
Hi Jaydeep, Following code generates error, .rept 2 .irp m1 1,2 .long \m1 .endr .endr ***Error: unexpected end of file in irp or irpc For which target ? I was unable to reproduce this

Re: [Bug ld/850] New: linker issued assertion failure elf64-ppc.c:7771

2005-04-15 Thread Nick Clifton
Hi Robert, The problem caught is about error during linking of executable. /usr/bin/ld: BFD 041202 20041202 assertion fail elf64-ppc.c:7771 Please could you provide a simple way to reproduce this problem. This error msg is repeated many times. ld -V GNU ld version 041202 20041202 You may find that

Re: [Bug gas/847] New: Error: Zero-length symbol is illegal

2005-04-15 Thread Nick Clifton
"' when input comes from stdin. Hmm, well the documentation does also say that the feature is only supported for backwards compatibility and may go away in the future. Still a patch for this problem seems fairly straight forward. Jan, Ian - what do you think of this ? Cheers Nick ga

Re: [Bug binutils/867] New: Compilation errors for binutil-2.14 on RedHat 7.2

2005-04-25 Thread Nick Clifton
Hi Vivekk, I am getting to compilation errors for binutils-2.14. FYI: This is an old release of binutils. We are now at 2.15 and version 2.16 is about to be released. localealias.c:337: void value not ignored as it ought to be localealias.c:341: void value not ignored as it ought to be Am I mis

Re: Linker mapfile shows strange addresses

2005-04-26 Thread Nick Clifton
Hi Hartmut, I'm using an m68k-elf-ld linker (GNU ld version 2.14 20030612) and relocating sections to a different load address with AT. As the linker script file for doing this is not so easy to write, I'm often looking at the mapfile generated by ld to verify that I'm doing everything correct. Th

Re: [Bug binutils/868] New: bfd leaks memory in several places

2005-05-05 Thread Nick Clifton
Hi John, bfd has several memory leaks. I'm fixing the ones in dwarf2.c, but a simple grep for 'bfd_realloc' shows several obvious leaks on failure: ./bfd/bfdio.c:bim->buffer = bfd_realloc (bim->buffer, newsize); [etc] The least intrusive way to resolve most of these would be to provide a n

Re: GNU binutils strip and option -s (strip debuginfo) from ld don't work.

2005-05-09 Thread Nick Clifton
Hi Jernej, It is a known issue that the GNU binutils strip and option -s (strip debuginfo) from ld don't work. No. Can you provide some more information about the failure please ? * Which version of strip and ld ? * What is the failure ? * For which host and for which target ? * Can you pro

Re: Assertion failed in linker

2005-05-17 Thread Nick Clifton
Hi Jan, I apologise for taking so long to reply to your email. I am running binutils binutils-2.16.90.0.2-2mdk (Mandrake Cooker). After upgrade from 2.15.x series which Mandrake used before, I am getting this error on linking: collect2: ld terminated with signal 11 [Segmentation fault] /usr/bin/

Re: [Bug binutils/947] Extension to BFD and addr2line to print inlining chain

2005-05-17 Thread Nick Clifton
Hi Fred, Created an attachment (id=487) --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=487&action=view) Patch to implement unwinding of inlining chains This patch is approved - please check it in, but with one addition: Please could mention the new feature of addr2line in the binutils/

Re: ld -wrap does not apply to symbols referenced in same file as the symbol's defintion

2005-05-17 Thread Nick Clifton
Hi Steve, This is request to binutils to fix -wrap to work properly with all symbol references. This would be a useful feature but unless you want to implement it yourself I think that it might be quite a long time before somebody decides to have a go at it. I am sorry to be so pessimistic, bu

Re: PA-RISC bug in gas

2005-05-18 Thread Nick Clifton
Hi Dan, Hi - I'm trying to use gas 2.15 on PA-RISC, and I want to issue an ldcws instruction like: ldcws,co 0(%r20), %r19 which is accepted by the HP assembler, but gas barfs with: Error: Invalid Short Load/Store Completer. gas apparently doesn't like the cache control hint completor, whic

Re: Error in _fixunsdfsi for m68040

2005-06-08 Thread Nick Clifton
Hi Mario, I can't build a 68k C cross compiler under cygwin starting from: binutils-2.16 newlib-1.13.0 gcc-4.0.0 because an error compiling libgcc2.c in function _fixunsdfsi for M68040 Using binutils-2.15 there is no more error and the generated 68k cross compiler w

Re: ld/genscripts.sh: test: argument expected

2005-06-16 Thread Nick Clifton
Hi Alexander, Trying to build arm-elf (from sparc-solaris) I got the following error: LIB_PATH='' /bin/sh ../../binutils-2.16.1/ld/genscripts.sh ../../binutils-2.16.1/ld /home/sw/ask/gnuarm/lib "/home/sw/ask/gnuarm" sparc-sun-solaris2.8 arm-unknown-elf arm-elf "armelf" "/usr/local/lib /lib /usr

Re: reg graphs

2005-07-05 Thread Nick Clifton
Hi Nithya, Is it possible for us to draw the graph that shows the cpu utilization during the various time intervals. It is not clear what you mean by "CPU utilization" here. gprof tool gives us the CPU utilization of the various functions. No it does not. It shows you how the CPU time t

Re: BFD 2.16.1 "assertion failure" and "internal error"

2005-07-05 Thread Nick Clifton
Hi Dan, BFD: BFD 2.16.1 assertion fail ../../binutils-2.16.1/bfd/coff-alpha.c:606 BFD: BFD 2.16.1 internal error, aborting at ../../binutils-2.16.1/bfd/coff-alpha.c line 635 in alpha_adjust_reloc_in The details of the bug are here: http://sourceware.org/bugzilla/show_bug.cgi?id=1030 Note ha

Re: BFD bug with elf*-sparc sections?

2005-07-12 Thread Nick Clifton
Hi Dan, Using the source files and Makefile I posted to the web: http://www.cs.cornell.edu/marques/bfdexample/a.cxx http://www.cs.cornell.edu/marques/bfdexample/c.cxx http://www.cs.cornell.edu/marques/bfdexample/Makefile I do not have access to the SUNPro C++ compiler, so would it be possible

Re: BFD 2.16.1 "assertion failure" and "internal error"

2005-07-13 Thread Nick Clifton
Hi Dan, The standard ALPHA_MAGIC number is 0x183. However, the DEC C and C++ compilers can generate compressed binary files, whose magic number will be 0x188. Ah ha! An alternative would be to use the 'objZ -u' command to uncompress the .o file. Presumably, this could be done automaticall

Re: BFD 2.16.1 "assertion failure" and "internal error"

2005-07-14 Thread Nick Clifton
e, so I've attached a patch that does just this. Let me know when/if you incorporate it to the cvs tree, and when the patch that you proposed makes it in. I have now checked both your patch in and mine as well. Cheers Nick bfd/ChangeLog 2005-07-14 Daniel Marques <[EMAIL PROTECTED]

Re: [Bug gas/1069] Segmentation fault in libiberty/xexit.c:51

2005-07-14 Thread Nick Clifton
2005-07-14 Nick Clifton <[EMAIL PROTECTED]> PR 1069 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing the ins_parse buffer. Index: gas/config/tc-crx.c === RCS file: /cvs/src/src/gas/

Re: Misinterpretation of PE export address table entries

2005-07-29 Thread Nick Clifton
Hi Pavel, pe_print_edata() thinks the RVA is a forwarder when it points between the start of export tables (from the data dictionary) and the end of the *whole section* containing the tables. This is wrong. It should use the length in the data directory to determine the end of area occupied by

Re: binutils 2.16.1: objcopy broken on solaris x86?

2005-07-29 Thread Nick Clifton
Hi Andrew, < LOAD off0x vaddr 0x paddr 0x align 2**16 > LOAD off0x vaddr 0x paddr 0x align 2**12 According to the solaris linker and library guide http://docs.sun.com/app/docs/doc/817-1984/6mhm7pl2a?a=view#chapter6-34713 p_align should

Re: what about new feature for objcopy

2005-08-04 Thread Nick Clifton
Hi Victor, I'd like to have the following feature in objcopy: 1) set FUNCTION attribute for some symbol or other attributes 2) set/correct size for some symbol (e.g. function) In other words, I'd like to have simple command-line interface to correct symbol table of objects. This would indeed

Re: Objdump missinterpretes padding bytes

2005-08-08 Thread Nick Clifton
Hi Dominic, I'm using objdump as a preprocessor for a tool which analyzes a binary's assembly and discovered that a jump instruction in the libc function "strrchr" has no target or rather the target lies within an instruction. Objdump missinterpretes 3 padding bytes and thus creates incorrect di

Re: what about new feature for objcopy

2005-08-11 Thread Nick Clifton
Hi Victor, Thanks for your e-mail. I really need such a feature because some libraries on Linux (for example Intel/IPP 4.1) contain some external functions like names and without correct sizes. Really if these libraries contain incorrect information and they are distributed in a binary-only

Re: issue with -R option coupled with -Xlinker gcc option

2005-08-12 Thread Nick Clifton
Hi Michael, Arm-elf-ld version : 2.15 This is probably your problem. Please try upgrading to the latest released version of the binutils (2.16) or failing that, please try using the current mainline sources in the CVS repository. Cheers Nick __

Re: found vuln in bfd lib Coff code

2005-08-17 Thread Nick Clifton
Hi ICBM, Found a new vuln in bfd lib coff code and similar with the last one... In the do_slurp_coff_armap() funciton: static bfd_boolean do_slurp_coff_armap (bfd *abfd){ ¡­ carsym_size = (nsymz * sizeof (carsym)); //uses the nsymz from file ptr

Re: infinate loop in as with .org pseudo

2005-08-17 Thread Nick Clifton
Hi Dan, Given this as input (three lines): foo = . .org foo+16 foo = . GNU as (with no special command-line options) apparently goes into an infinate loop. Not surprising really since that is a pathological piece of code. Still infinite loops are bad things, so please could you try out

Re: infinate loop in as with .org pseudo

2005-08-18 Thread Nick Clifton
-18 Nick Clifton <[EMAIL PROTECTED]> * write.c (relax_segment): Count the number of frags being processed and use this to compute a maximum limit on the number of iterations that will be allowed when attempting to relax the segment. Cheers

Re: alpha linux: R_ALPHA_LITERAL relocation overflow

2005-09-02 Thread Nick Clifton
Hi Mike, I submitted this to bugzilla last week, but I didn't know who to assign it to, and I wanted it to get more exposure. If I'm posting this to the wrong place, I apologize: No this is the right place for such questions, although you may find that posting to "[EMAIL PROTECTED]" is more

Re: ld relocate symbols(in small common section) to a unaligned address.(on mips r3000 target)

2005-09-07 Thread Nick Clifton
Hi Zhigang, /home/zhigang/0808/pattern_install/lib/extras.o 0x8090bc4d piofree_handle --Please see here, the address is not correct aligned .comm piofree_handle,4,4(the alignment is right) This does

Re: ld relocate symbols(in small common section) to a unaligned address.(on mips r3000 target)

2005-09-09 Thread Nick Clifton
Hi Zhigang, sorry i forgot to attach the file. Now attach the tar ball. Unfortunately you sent this huge attachment to the entire binutils mailing list, not just me. In the future please try not to do this. If you cannot create a small test case then please either just send the large test

Re: ld relocate symbols(in small common section) to a unaligned address.(on mips r3000 target)

2005-09-09 Thread Nick Clifton
Hi Zhigang, Hmm. I am basically using the same or very similar sources as you. All the sources are from checkouts from the various CVS repositories on 8 Sept 2005. The versions are binutils v2.16.91, gcc v4.1.0, and newlib v1.13.0. I also configured my toolchain in the same way as you, a

Re: ld overwriting output sections???

2005-09-30 Thread Nick Clifton
Hi Jakub, the kernel image is linked together correctly (line is present) or the .mapped section overwrites the .unmapped section (line is not present). When you say that it overwrites are you referring to the load-time address (LMA) or the run-time address (VMA) or both ? Is there anythin

Re: binutils and libiberty.h

2005-09-30 Thread Nick Clifton
Hi Pierre, I just compiled without problem binutils 2.16.1. But I noticed that the 'make install' didn't install the 'libiberty.h' file which is needed by some other apps. I would like to know if this is a normal situation or if I have misunderstood some things. It is probably the normal sit

Re: [Bug binutils/1391] New: objcopy trashes PE executable when using "add-gnu-debuglink"

2005-09-30 Thread Nick Clifton
Hi, Idx Name Size VMA LMA File off Algn 0 .gnu_debuglink 0018 0268 2**2 When using a native win32 "PE" editor/format tool like "LordPE" it lists some crap for the first section (containing debug link), all other sections seem ok: S

Re: Is this a ld bug?

2005-09-30 Thread Nick Clifton
Hi Vamsi, hidden symbol `__dso_handle' in /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/crtbegin.o is referenced by DSO collect2: ld returned 1 exit status is this a bug in binutils 2.14 ?? Almost certainly yes. Please try building a new linker using the current latest released sources (versi

Re: assembler 'movl ss, (ebp)' produce an error for target i686

2005-10-01 Thread Nick Clifton
Hi Henry, * Bug: 'movl %ss, (%ebp)' produce an error for target i686 (32 bit): " Error: suffix or operands invalid for `mov' " I asked the x86 maintainers if they would look at this bug report. Here is what H.J.Lu had to say about it: ; There is no such a thing of moving between a segmen

Re: ObjDump Doc. Bug

2005-10-10 Thread Nick Clifton
Hi Bryce, "reg-name-std" needs to be replaced with "reg-names-std" So it does. I have committed the obvious patch (attached). Cheers Nick binutils/ChangeLog 2005-10-10 Bryce Schober <[EMAIL PROTECTED]> * doc/binutils.texi (objdump): Fix typo: -reg-name-std should be -re

Re: Bugs on binutils - verious SUNs . . .

2005-10-10 Thread Nick Clifton
Hi Peter, tonite I tried to compile the new version of binutils (2.16.1) on various SUN-Workstations without success. (1) First of all, there saemas to be a bug, if you use "./configure --prefix /usr/gnu" I got errors when typeing "make" in the sub directories "bfd" and "lib

Re: [Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-debuglink"

2005-10-11 Thread Nick Clifton
Hi, currently one can fix this manually by executing additional step: objcopy --change-section-vma .gnu_debuglink=+ test_xxx.exe I did a grep on the sources but could not really find a location where the wrong VMA might be produced.. Could this be a bug in bfd library itself? Yes, although

Re: readelf patch: support non-standard section header sizes

2005-10-27 Thread Nick Clifton
Hi Ronald, Problem: when running readelf on ELF binaries that have a non-standard size for the Elf32_Ehdr.e_shentsize field (and thus non-standard size section headers), the sections are not correctly interpreted. Can you post a (small) example file that contains such non-standard sizes so th

Re: Bug in ar (all binutils version)

2005-10-27 Thread Nick Clifton
Hi Mario, The bug is in arsup.c in function ar_save. The rename instead of smart_rename is used. The smart_rename function take the operating system into account. This bug is in all version of the binutils 2.11, 2.13, 2.14 and 2.15 under windows. Are you sure about the problem existing in 2.15

Re: [Bug gas/1568] New: COFF code section should be read only

2005-10-28 Thread Nick Clifton
be OK. Please could you try out the uploaded patch and see if it resolves the problem for you ? Cheers Nick gas/ChangeLog 2005-10-28 Nick Clifton <[EMAIL PROTECTED]> PR binutils/1568 * config/obj-coff.c (obj_coff_section): Set readonly flag with the 'x&#

Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init'

2005-11-08 Thread Nick Clifton
Hi Michael, I ran into this one as well on IRIX-6.5.28m with gcc-4.0.1 and binutils-2.16.1. Why is this bug in status WAITING? Is more input required? I can provide testing and debugging if required. Can you provide a specification for these OPTIONAL symbols ? Cheers Nick __

Re: Incorrect check on assembly language register name

2005-11-08 Thread Nick Clifton
Hi Jean-Jacques, I think there is a mistake in the isoctal definition in the “gas/config/tc-sparc.c” file : #define isoctal(c) ((unsigned) ((c) - '0') < '8') There are simple quotes around the 8 while I think they should not be there Thanks for reporting this problem. I have applied yo

Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init'

2005-11-09 Thread Nick Clifton
Hi Michael, I don't have any information beyond the error message and what I learned from the message to the mailing list quoted above. The behaviour of OPTIONAL symbols seems to be that they're silently ignored if not present in any of the linked objects, allowing for using libraries if linked

Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init'

2005-11-10 Thread Nick Clifton
Hi Michael, Okay, I gave it a try to build a testcase. It's included in the attachment. Thanks. I was not able to run all of the tests in your testcase, since I do not have the Irix system libraries available, but I was able to reproduce the linker error message about undefined symbols and

Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init'

2005-11-11 Thread Nick Clifton
Hi Michael, The testcase nwo runs fine with the patched ld: Great - I will check that patch in then as a first step in resolving this PR. But the original problem with libpthread remains: [EMAIL PROTECTED] ~]$ gcc -o t t.o -lpthread /usr/lib/../lib64/libpthread.so: undefined reference t

Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init'

2005-11-21 Thread Nick Clifton
Hi Michael, using the above test case I tracked down the place in elflink.c where the symbol os is reported as undefined when localed in a shared library. The attached patch hacks elflink.c to check for STO_OPTIONAL in h->other. This makes the test case work with both native IRIX and Mac OS X cr

Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init'

2005-12-22 Thread Nick Clifton
Hi Rainer, Did somebody else some tests using these binutils patches? Not yet, but I am back at my normal workplace now, so this is on my list. Is there a chance that these patches will be applied? Yup, in a couple of days probably. Sorry for the delay. Cheers Nick

Re: FW: Problem with gnu-ld

2005-12-28 Thread Nick Clifton
Hi JAIN, [EMAIL PROTECTED] ld-bug]$ ld --version GNU ld version 2.14.90.0.4 20030523 This is an old release of the linker. Please try the latest release (2.16) or, even better, the current development sources. This may well fix the problem. If it still fails, please could you post the li

Re: Bug in relocation name table

2006-01-09 Thread Nick Clifton
Hi Alexis, The following table (in version 2.14 to 2.16 at least) includes relocation names. The last name "HIGH3ADJ" is concatenated with the word "UNKNOWN" since the person who wrote the table missed one comma. Thanks for pointing this out. I have checked in the correction along with this

Re: How to overcome the problem created when binutils is installed?

2006-01-19 Thread Nick Clifton
Hi Ashwani, i have fedora core 3 distribution with gcc version 4.0 .When i installed binutils 2.13 2.13 is a very old release. You really should be using the 2.16 release, which you ought to have found included with the gcc 4.0 distribution that you are using. each and every program wh

Re: [Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-debuglink"

2006-01-26 Thread Nick Clifton
Hi Brian, PR binutils/1391 * objcopy.c (copy_object): For PE format targets set the VMA of a newly created gnu_debuglink section to a non-zero, aligned, contiguous value. * Makefile.am (objcopy.c): Add a dependency upon libbfd.h. * Makefile.in: Reg

Re: help

2006-01-28 Thread Nick Clifton
Hi Zhao, When I use arm-elf-readelf , I have one question. Can you output one section all info . I want display all [ 17 ] bss section all information. as bellow. 29284: 11f56d88 200 OBJECT GLOBAL DEFAULT 17 GetGSMCmdBuf 29296: 11e02340 4 OBJECT GLOBAL DEFAULT 17 listfont

Re: objcopy --add-section doubt

2006-01-28 Thread Nick Clifton
Hi Kartikeyan, With binutils that come with RH9 version binutils-2.13.90.0.18-9 (rpm) I am able to add any arbitary file(i am trying a text file) as a ELF section eg:- objcopy --add-section .skdata= Everything works as expected When I try with binutils version binutils-2.15.94.0.2.2-2 (FC4

Re: objcopy --add-section doubt

2006-01-30 Thread Nick Clifton
" before the "--add-section .skdata=a" switch. Cheers Nick binutils/ChangeLog 2006-01-30 Nick Clifton <[EMAIL PROTECTED]> * objcopy.c (copy_object): Catch the case where an attempt is made to add a section that already exists and produce a more helpful

Re: Building binutils-2.15.97 --enable-targets=all

2006-01-30 Thread Nick Clifton
Hi Muhammad, While building binutils (binutils-2.15.97.tar.bz2) on Cygwin, as follows: configure --enable-targets=all --enable-shared --with-gnu-as --with-gnu-ld make I got the following error: obj-coff.o: In function `coff_frob_symbol': /usr/src/binutils-2.15.97/gas/config/obj-coff.c:1145:

Re: objcopy --add-section doubt

2006-02-01 Thread Nick Clifton
Hi Daniel, Yes - this is the heart of the matter. What is happening is that you are attempting to add a section that already exists. The old (RH9) binutils silently allowed this, which was incorrect. Wait... why? There's no restriction in ELF about having multiple sections with the same n

Re: Assembler unable to handle relative offsets in PIC code under cross-compiling env.

2006-02-09 Thread Nick Clifton
Hi Ayonam, The assembly fragment in question looks like this: .section.rodata .L5465: .long .L5457-.+(.-.L5465) .long .L5458-.+(.-.L5465) <<- Problem first reported here .section .gnu.linkonce.t._ZNK6Layout12StdTransformIiE9transformIdEEKNS_5PointIT_EERS6

Re: Assembler unable to handle relative offsets in PIC code under cross-compiling env.

2006-02-20 Thread Nick Clifton
Hi Ayonam, I'm using gcc version 3.2.2 and I think I also gave a try with 3.4.3 also. I'll verify this and get back to you. It would also be very good to know if this is a problem with the current GCC sources in the mainline of the FSF repository. ie is this a bug in GCC that has already b

Re: -al

2006-03-08 Thread Nick Clifton
Hi George, I have been using the -al=file to generate assembler listing files. In version 2.16 this is being interpreted as --alternate. I am unable to reproduce this problem, either using the 2.16 branch sources or the current CVS mainline sources. For example: % arm-elf-gas -al nop.s

Re: Problem using -X and -N together with gnutar?

2006-03-09 Thread Nick Clifton
Hi Robert, tar (GNU tar) 1.14 Sorry - you have the wrong mailing list. This is the list for bug reports concerning the GNU Binary Utilities (binutils). You want the GNU Tar bug list which is: bug-tar@gnu.org Cheers Nick ___ bug-binutils

Re: -al

2006-03-10 Thread Nick Clifton
2.16 test build I was able to reproduce your problem. Please could you try the attached patch. I believe that it will resolve the problem. Cheers Nick gas/ChangeLog 2006-03-08 Nick Clifton <[EMAIL PROTECTED]> * as.c (parse_args): Add an entry for "al" to prev

Re: [Bug ld/2378] Incorrect opcode in __do_clear_bss if bss has more than 15 bytes

2006-03-10 Thread Nick Clifton
Hi Ken, avr-as a.S -o a.o avr-ld -m avr4 -Tdata 0x800100 -o a.elf a.o avr-objdump -d a.elf > a.lst avr-ld -m avr4 -Tdata 0x800100 -o a.hex --oformat=ihex a.o The list file shows both opcodes correctly, "a0 31". But in the hex file the first one is wrong, "B031", while the s

Re: -al

2006-03-11 Thread Nick Clifton
Hi Daniel, *** main (int argc, char ** argv) *** 1205,1211 keep_it = 0; if (!keep_it) ! unlink_if_ordinary (out_file_name); input_scrub_end (); --- 1206,1212 keep_it = 0; if (!keep_it) ! unlink (out_file_name); input_scrub_end ();

Re: [Bug binutils/2454] New: incorrect syntax in avr disassembly

2006-04-07 Thread Nick Clifton
Hi hochstein, The disassembly for call and jmp looks like this: 43a: 0e 94 7e 0e call0x1cfc <__divmodhi4> This causes problems since the "" part is not correct assembler syntax. It should read like this: 43a: 0e 94 7e 0e call0x1cfc ; <__divmodhi4> Do

Re: gprof

2006-04-07 Thread Nick Clifton
Hi Susukita, $ time ./a.out real0m4.324s $ gprof a.out Each sample counts as 0.01 seconds. % cumulative self self total time seconds secondscalls s/call s/call name 9.46 43.22 4.09 rand This looks

Re: objdump

2006-04-07 Thread Nick Clifton
Hi Paz, My name is paz and I have a doubt, how can I convert my ".srec" file to ".od" to use it with AVRORA?? Sorry, but I do not think the objcopy supports the Avrora .od file format, so you cannot do this using the binutils. Cheers Nick __

Re: [Bug gas/2582] New: dwarf2dbg.c embeds absolute filename path with hard-coded / separator

2006-04-25 Thread Nick Clifton
Hi Burgess, dwarf2dbg.c -- line 1476 of CVS version 1.81: p[len] = '/'; This inserts a filesystem separator character when tacking the source filename back onto the source directory when providing the source-file's path for DWARF2 debugging information. HOWEVER in Windows systems where the

Re: [Bug gprof/2587] New: Failed to build gprof under gmake patched by Apple.

2006-04-25 Thread Nick Clifton
Hi Masaki, Building gprof was failed because of patched gmake (bundled with OSX). Follow is a patch to disable a builtin suffix rule. diststuff: $(BUILT_SOURCES) info $(man_MANS) +# this empry rule is a hack against gmake patched by Apple. +%.o:%.m + .m.c: awk -f $(srcdir)/gen-c-

Re: [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator

2006-04-26 Thread Nick Clifton
Hi Bill, Another thought -- why not look for the THIRD character to be a backslash? This will handle not only absolute paths that start with :\ but also relative paths that start with ..\ -- what do you think? --Bill That wouldn't work. Not all relative paths start with "..". For example

Re: [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator

2006-05-05 Thread Nick Clifton
lem report. Cheers Nick PS. Committed with this ChangeLog entry: gas/ChangeLog 2006-05-05 Nick Clifton <[EMAIL PROTECTED]> PR gas/2582 * dwarf2dbg.c (INSERT_DIR_SEPARATOR): New macro. Handles the insertion of a directory separator character into a string at a

  1   2   3   4   5   6   >