Re: supposed bug in assembler "as"

2007-11-06 Thread Nick Clifton
Hi Daniela, Redefining a symbol with the '.set' directive in connection with the location counter does not work correctly. I am using: GNU assembler 2.14 This is your problem. Version 2.14 is an old version which was known to have problems in this area. The current release is 2.18. Please

Re: binutils.texi frontmatter

2007-11-07 Thread Nick Clifton
Hi Karl, 2007-11-04 Karl Berry <[EMAIL PROTECTED]> * doc/binutils.texi: Update to FDL 1.2. (Top): consistent punctuation in menu entries. (Index): Rename from Binutils Index. * doc/fdl.texi: Update from http://www.gnu.org/licenses/fdl.texi. Applied. Cheers

Re: [Bug gas/5269] New: Cryptic Note-messages to translate in gas-2.17.90.fi.po

2007-11-07 Thread Nick Clifton
Hi Jorma, The first problem here is "gprs". It is actually GPRs or "General-Purpose RegisterS", isn't it? Yes. The next problem here is "Note". When I checked with my favorite online dictionary, it provides 22 different meaning for "Note". Usually context shows what is the meaning of a sing

Re: ld does not alias

2007-11-07 Thread Nick Clifton
Hi Michiel, ld does not replace alias by symbol when import library has .lib extension and output is a .dll (-shared). It does if import library has .a extension, and also if output is a .exe. Please could you file a bug report on this and include a simple test case to reproduce the problem

Re: version-independent url for binutils documentation?

2007-12-03 Thread Nick Clifton
Hi Karl, Is there a version-independent url for binutils documentation? All I could find is http://sourceware.org/binutils/docs-2.18. Without one, it's very difficult for other Texinfo manuals and web pages to refer to the doc ... Not really. You could refer the reader to the binutils web

Re: [Bug gas/5457] INTOUCH instruction incorrectly disassembled.

2007-12-22 Thread Nick Clifton
Hi Jonathan, PS. Incidentally it would be great if you could include a new gas testsuite test It certainly would, but as I explained early on, I don't quite know how to do this. I'll try to use some existing test case as a model and see what I can do. It should be quite simple. See gas/test

Re: version-independent url for binutils documentation?

2007-12-24 Thread Nick Clifton
Hi Karl, Would it be feasible to make, say, http://sourceware.org/binutils/docs/ simply a link to docs-2.18? That seems like it might be simplest. Yes it would, and I have now done that. Cheers Nick ___ bug-binutils mailing list bug-binutils@gn

Re: patch for HPUX SOM on non-HPUX systems

2007-12-24 Thread Nick Clifton
Hi David, Here is a patch to allow hpux's som target to build on non-hpux hosts. Thanks for submitting this. I have a couple of comments on the patch: * I think that the somswap.h file would be better off in the bfd/ directory rather then the include/som directory, on the basis that this

Re: ld

2007-12-26 Thread Nick Clifton
Hi Ashley, I'm having some trouble using the linker... I am using V4.1.2 as part of the WinAVR package. Which version of the linker does this include ? If it is earlier then v2.18 please try downloading the current binutils sources and building a new linker. If that does not solve the

Re: BUG: 2.18: configure: WARNING:'makeinfo' is missing on your system

2007-12-29 Thread Nick Clifton
Hi Robin, [EMAIL PROTECTED], "WARNING:'makeinfo' is missing on your system" will break the complier. This has already been fixed in the mainline sources. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mail

Re: Assertion failure in 2.18

2008-01-04 Thread Nick Clifton
Hi Yang, Thanks for the test case. The problem appears to be that the special assembler created section "*GAS 'reg' section*" is somehow being copied into the output file, when it really should not be. Please could you open a bug report at: http://sourceware.org/bugzilla/ Please

Re: binutils-2.18 build error

2008-01-07 Thread Nick Clifton
Hi Yevgeniy, libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o .libs/ld-new ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o sha1.o eelf_i386_ldso.o eelf_i386.o eelf_x86_64.o /usr/local

Re: gprof reporting zero times for one program

2008-01-25 Thread Nick Clifton
Hi David, I'm having issues with gprof reporting empty times on the development version of my network program nettee. binutils-2.17.50.0.9-1mdv2007.1 For the record there is a 2.18 release out now, although I doubt if this will have any effect on the problem you are seeing. Whereas for

Re: gprof reporting zero times for one program

2008-01-28 Thread Nick Clifton
Hi David, The only change other than the use of multiple files, instead of just one, Having multiple source files rather than just one definitely should not be causing this. that I can think of which might be causing this is that the new version of nettee calls alarm(0) and alarm(time) mor

Re: [Bug ld/5692] ld segfault linked to bfd elf error

2008-01-30 Thread Nick Clifton
Hi Paul, Trivial test case ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null Not trivial enough I am afraid. I tried that with an arm-linux-uclibc toolchain built from today's binutils sources and I just get this output: ld-new: warning: cannot find entry symbol _start; defau

Re: Correct ELF machine for coldfire?

2008-01-31 Thread Nick Clifton
Hi Jonathan, We are compiling for Coldfire CFV4E target. Binutils seems to want to set the ELF header em_machine field to EM_68K with about half a dozen options set to indicate instruction set and so forth. Should this be getting set to EM_COLDFIRE, or is the existing behavior correct? I thin

Re: Correct ELF machine for coldfire?

2008-02-01 Thread Nick Clifton
Hi Daniel, Should this be getting set to EM_COLDFIRE, or is the existing behavior correct? I think that it is a bug. ie the number should be EM_COLDFIRE. The GNU tools never generate EM_COLDFIRE. I think some non-GNU tools do. Ok, but is the EM_COLDFIRE number the correct one to use ? (i

Re: [Bug ld/5744] Misleading linker messages - Error: Overflow detected in relocation value

2008-02-14 Thread Nick Clifton
Hi Mike, Some more information: in my build the problem appears when a global variable is defined of a type which is less than 32 bit or not 32 bit aligned. Can you supply a small test case to reproduce this problem ? It is not clear what excatly the linker complains about and how to fix the

Re: [Bug ld/5785] New: Spurious "section xxx overlaps section yyy"

2008-02-22 Thread Nick Clifton
Hi Sergei, LD version 2.18.x produces bogus "section .xxx overlaps section .bss", while LD version 2.16.1 works just fine. Well the 2.18 linker is behaving as documented. Specifically in the bit on the "Output Section LMA" in the manual: If neither AT nor AT> is specified for an allocata

Re: this bug/#360268 - binutils: please document ranlib -t

2008-02-27 Thread Nick Clifton
entry. Cheers Nick binutils/ChangeLog 2008-02-27 Justin Pryzby <[EMAIL PROTECTED]> Nick Clifton <[EMAIL PROTECTED]> * ar.c (usage): Mention -t command line switch. * doc/binutils.texi (ranlib): Document -t command line switch. Index: b

Re: ARM tc-arm.c is not compiled with old GCC

2008-03-27 Thread Nick Clifton
Hi Ineiev, The first complain is in do_neon_cvt(): two variables are defined in an improper place. I think they would better go to the begin of their block. The second is in do_neon_ext(): the compiler tells of comparing of signed and unsigned integers; it treats this as an error. I suggest an

Re: [Bug gold/5990] New: running out of file descriptors when linking >1024 files

2008-03-28 Thread Nick Clifton
Hi Chris, When trying to link a binary which takes a large number of files, I get many errors like this: ld-new: cannot open ../driver/ic/via/sinai/mlxhh/obj/1/mcgm.o: Too many open files This is coming from Read_symbols::do_read_symbols. I can obviously work around the problem by increasing

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

2008-04-02 Thread Nick Clifton
Hi Danny, 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() si

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

2008-04-04 Thread Nick Clifton
Hi Danny, _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. Oops! I meant that in the future there might be other

Re: [Bug ld/3290] Linker creates dynamic debug symbols in DSO

2008-04-04 Thread Nick Clifton
Hi Jakub, --- bfd/elflink.c 2 Mar 2008 22:26:09 - 1.299 +++ bfd/elflink.c 25 Mar 2008 15:01:19 - @@ -4294,7 +4294,7 @@ elf_link_add_object_symbols (bfd *abfd, dynsym = TRUE; } - if (definition && (sec->flags & SEC_DEBUGGING)) +

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

2008-04-14 Thread Nick Clifton
Hi Danny, (Sorry about the delay in replying, I am a bit snowed under at the moment). One of the earlier suggestions was for the default print_pdata to be used when the new field is NULL. This is how I implemented it. Doh, yes I should have realized that. I don't think I understand. If

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

2008-04-15 Thread Nick Clifton
Hi Andre, Nick, I'm not sure reverting the cleanup is correct. At least in binutils 2.18, the function concat_filename uses bfd_malloc, which again uses malloc. Hmm, that is a fair point. Running with a change similar to the one in comment #14 plus freeing caller_file removes the leaks I

Re: [Bug ld/6430] --sort-common Not Implemented Per Documentation

2008-04-22 Thread Nick Clifton
Hi Guys, You are correct in that this way a gap would be avoided when the size changes. But given that all like-sized symbols are laid out back to back, this only happens when the size changes. So, either the manual must be changed or the code. I, for one, would rather have the code changed..

Re: no support for undefined weak 16-bit coff symbols

2008-04-25 Thread Nick Clifton
Hi Jay, It looks like bfd_coff_reloc16_get_value() doesn't know about undefined weak symbols. This patch fixes the problem for me: Thanks - I have applied this patch along with the changelog entry below. Cheers Nick bfd/ChangeLog 2008-04-25 Jay Foad <[EMAIL PROTECTED]> * reloc16

Re: [Bug binutils/6449] objdump -S and DOS-style line-endings

2008-04-28 Thread Nick Clifton
of O_BINARY into sysdep.h. Cheers Nick binutils/ChangeLog 2008-04-28 M Thomas <[EMAIL PROTECTED]> Nick Clifton <[EMAIL PROTECTED]> PR binutils/6449 * objdump.c (slurp_file): Open the file in binary mode. * ar.c: Remove conditional definition

Re: [Bug binutils/6460] New: ld - bfd_emul_get_maxpagesize bug

2008-04-28 Thread Nick Clifton
Hi aric81, When i compile Newton SDK on a 64 bit machine with the -m32 option and the GNUTARGET=i386 variable, it says to me: /usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.18.0.20080103 internal error, aborting at ../../bfd/bfd.c line 1607 in bfd_emul_get_maxpagesize Would it be possible for y

Re: bug 5717 does not exists?

2008-04-29 Thread Nick Clifton
Hi Németh, I searched for bugs: http://sourceware.org/bugzilla/buglist.cgi?query_format=&short_desc_type=allwordssubstr&short_desc=pow+486sx&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&gcchost_type=allwordssubstr&gcchost=&gcctarget_type=allwordssubstr&gccta

Re: patch to improve documentation on strings handling of unicode

2008-04-30 Thread Nick Clifton
Hi John, single-8-bit-byte characters, @samp{b} = 16-bit bigendian, @samp{l} = 16-bit littleendian, @samp{B} = 32-bit bigendian, @samp{L} = 32-bit littleendian. Useful for finding wide character strings. +(@samp{l} and @samp{b} apply to, for example, Unicode UTF-16/UCS-2 +encodings.) Thanks

Re: ARM unwind tables generation uses uninitialized memory

2011-11-29 Thread nick clifton
Hi Alexander, It turns out that while generating the unwind tables, it uses uninitialized memory, so some times it would generate invalid entries: Please could you file a bug report about this here: http://sourceware.org/bugzilla/ It would be *really* helpful if you can include a testcase

Re: windres bug: "TOOLBAR" rescoure compiled wrong; version field missing => struct data shifted fatally

2012-01-20 Thread nick clifton
Hi Robert, windres.exe forgets to write the version 0x0001 at the beginning of the struct data Please could you open a bug report for this problem at: http://sourceware.org/bugzilla/ If you can include a full test case to reproduce the problem that would be helpful as well. correct RC.ex

Re: No rule to make target `../opcodes/libopcodes.la', needed by `as-new'. Stop.

2012-01-30 Thread nick clifton
Hi Jonathan, > make [...] make[2]: Entering directory `/root/src/GNU/unmodified_gnu/binutils-2.22/gas' make[2]: *** No rule to make target `../opcodes/libopcodes.la', needed by `as-new'. Stop. Anyone any ideas ? Does "make all-gas" work ? How did you configure the sources before building

Re: Linking to Gt.m object files

2012-02-23 Thread nick clifton
Hi Mike, but the linker fails. Please could you open a bug report about this at: http://sourceware.org/bugzilla/ Including the testcase will be really helpful. Itwill also be helpful to know that command line that g++ used to invoke the linker, as well as the target architecture for wh

Re: LFLAGS+=-Wl,-q causes ld to signal 11 during collect2

2012-02-24 Thread nick clifton
Hi David, I finally found that the cause was passing LFLAGS+=-Wl,-q to the compiler (asking LD to emit relocation records). Please could you file a bug report for this here: http://sourceware.org/bugzilla Including a way to reproduce the problem will really help. Cheers Nick __

Re: arm vmsr bug?

2012-03-20 Thread nick clifton
nstruction, not the priviledged mode versions of it. I am going to apply the patch below to fix this problem, and a similar one for the VMRS instruction. Cheers Nick gas/ChangeLog 2012-03-20 Nick Clifton * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP syste

Re: binutils configure locale bug

2012-04-03 Thread nick clifton
be done ? Cheers Nick [binutils|gas|gold|ld]/ChangeLog 2012-04-03 Nick Clifton * configure.in (AM_LC_MESSAGES): Add. (AC_CHECK_FUNCS): Add selocale. * config.in (HAVE_LC_MESSAGES): Add. (HAVE_SETLOCALE): Add. * aclocal.m4: Regenerate.

Re: Problem in binutils for aix6.1?

2012-06-07 Thread nick clifton
Hi John, I might have hit some bug in binutils 2.22. Have you tried using the current mainline development sources ? (It may well be that this problem has already been fixed there). If the problem still exists, please could you file a bug report here: http://sourceware.org/bugzilla/ Incl

Re: Objcopy and strip incorrectly zero ELF virtual address

2012-06-28 Thread nick clifton
Hi Juho, If objcopy or strip is applied to an ELF executable which has a LOAD segment in the program header, but none of the sections refer to it, the virtual address of the segment is set to zero. This behavior is incorrect, as the virtual address is not supposed to be used like this according

Re: bfd build error on fecdor 17

2012-08-17 Thread nick clifton
Hi Ling, > I'm encountered a error when I build Openwrt for atheros > ar71xx,which is mips r2 architectural.the error message as follow: *** BFD does not support target config.sub:. *** Look in bfd/config.bfd for supported targets. The problem is the "--enable-targets=-linux-uclibc" option

Re: Bug#697353: binutils: FTBFS with texinfo from experimental

2013-01-07 Thread nick clifton
Hi Patrice, Here is a patch for the binutils cvs that should solve all warnings and errors. In my opinion, it falls in the 'minor changes' case with respect to copyright. Thanks. I have applied your patch along with these changelog entries. Cheers Nick bfd/doc/ChangeLog 2013-01-07 Patri

Re: [Bug binutils/15033] option capable of stripping LTO (all sections beginning with .gnu.lto_)

2013-01-23 Thread nick clifton
Hi H.J. Why not use fnmatch like linker script? That would work too. I was just trying to keep things simple. But I am happy with either version of the patch. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.o

Re: spanish translation of info gprof

2013-03-20 Thread nick clifton
Hi Angel, I have a Spanish translation of this binutils/docs-2.22/gprof/index.html because I have been working on a project related to gprof and I haven't found any Spanish documentation good enough as the one you have here. Please note - there is a slightly newer version of the documentation

Re: gas new (2.20) rebuffer_line() excessive read() syscalls

2013-03-22 Thread nick clifton
Hi Jim, I've got a C language source code TU that is 1.3 MiB large. I didn't write it (I know better), but I have to make it coexist in a rather lengthy system build, and the leader of the system build team is justifably upset with me. As we see, the compilation time grows by a factor of 15X

Re: Assembler incorrectly rejects valid ARM/thumb code

2013-04-05 Thread nick clifton
Hi Torbjorn, .syntax unified .thumb .text ital subal r3, r3, #1 This is valid code. But gas 2.23.2 complains: Please could you try out the attached patch and let me know if it works for you. Cheers Nick Index: gas/config/tc-arm.

Re: using --output-type dyn on an arm executable

2013-06-07 Thread nick clifton
Hi Corbin, I have had success modifying and running a executable after changing it to a shared object via the use of *elfedit --output-type dyn /bin/grep* for an i386. But, I get a segmentation fault whenever I do similar for executables on an arm based machine. Sorry, but this is not a suppo

Re: using --output-type dyn on an arm executable

2013-06-10 Thread Nick Clifton
Hi Corbin, Why is the option presented? What value does it have if not supported? You would have to ask the tool's author that question. :-) That said, what I really want is to have an existing executable load to a higher/different address than default. Do you know of a way to do that? N

Re: binutils docs link missing

2013-07-18 Thread nick clifton
Hi Lothar, re: http://sourceware.org/binutils/docs-2.23.1/binutils/nm.html http://sourceware.org/binutils/docs-2.23.1/binutils/objdump.html on these two pages links to http://sourceware.org/binutils/docs-2.23.1/stabs/index.html fail. Thanks for reporting this problem. The link is now dead,

Re: prerequisites

2013-07-18 Thread nick clifton
Hi Jim, > dwarf2.c: a gratuitous ";;" This one had already been fixed. ar,c: an unnecessary violation of reasonable C standards, i.e., putting declarations after code This one I have just fixed. an understandable use of the "t" format, but 2.95.3 does not seem to understand it, or "z" -

Re: Assumption about size of bfd_vma in opcodes/arm-dis.c

2013-07-19 Thread nick clifton
Hi Mathias, In multiple places in opcodes/arm-dis.c there is an implcit assumption that bfd_vma has the same size as an int. See for example lines 2014-2033 in HEAD. This can cause a segfault e.g. if binutils is compiled on i386 with --enable-64-bit-bfd --target=arm-linux. I am confused - how

Re: Directive .p2align Not As Documented

2013-07-22 Thread nick clifton
Hi Chris, We need some more information in order to be able to debug this problem. Specifically: * Which version of the binutils are you using ? (If you are not using version 2.23 or the mainline development sources, please could you try one of these - the problem may have already b

Re: aarch64_logical_immediate_p

2013-08-28 Thread nick clifton
elow to fix the code to return FALSE and to add a test case to the assembler test suite to make sure that we generate an error message. Cheers Nick opcodes/ChangeLog 2013-08-28 Nick Clifton * aarch64-opc.c (aarch64_logical_immediate_p): Return FALSE if the immediate is n

Re: as variable '$' have problem

2013-09-04 Thread nick clifton
Hi 研发部淡明杰, bug description: In my program, expression '$-label' is ok to pass(see attachment file line 7&8) assemble, but 'lable-$' cannot pass It is nothing to do with the $ symbol specifically. Any undefined symbol will give you the same effect. Eg: $ cat test.s foo: nop

Re: turn off section padding

2013-09-30 Thread nick clifton
Hi Peter, It sees that as likes to pad sections so that they're multiples of 32 bytes. Actually I think that the alignment is 16 bytes rather than 32 bytes, but anyway... Is there a way to avoid this?? Two possible alternatives: 1. Configure your binutils for an ELF target, not li

Re: Differing archives on http://ftp.gnu.org/gnu/binutils/ and ftp://sourceware.org/pub/binutils/releases/

2013-10-17 Thread nick clifton
Hi Bernhard, the archives http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2 and ftp://sourceware.org/pub/binutils/releases/binutils-2.18.tar.bz2 are different. Is this expected? No. :-( I would consider the ftp.gnu.org version to be more correct, since it contains files that cannot be f

Re: Differing archives on http://ftp.gnu.org/gnu/binutils/ and ftp://sourceware.org/pub/binutils/releases/

2013-10-25 Thread nick clifton
Hi Bernhard, Projects like Freetz http://freetz.org/ or OpenWrt http://openwrt.org build customized firmware for DSL modems or router. The build systems require old versions of binutils suitable for old kernel or uClibc versions. An update is not possible due to closed source kernel modules and

Re: [Bug binutils/14289] bfd_pef_xlib_read_header reads beyond array bounds

2014-01-02 Thread nick clifton
Hi Yuanhui BTW: Is it possible to use my real name instead of the nick name in the change log message? My real name is Yuanhui Zhang. My nick name is Asmwarrior. Done. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org https://lists

Re: Objcopy to convert binary file to object file for Cortex-M4

2014-01-03 Thread nick clifton
Hi Steve, We would like to help you but... > CONFIDENTIALITY STATEMENT. This email and any attachment is for the > sole use of the intended recipient and may contain private, > confidential and/or privileged information that may be subject to > Hospira internal policies. If you are not the inten

Re: Objcopy to convert binary file to object file for Cortex-M4

2014-01-06 Thread nick clifton
Hi Steve, Sorry for my previous email blunder ... obviously I don't post to public forums often :). Sorry about going all officious on you over that, but it is important that people realize that this list is a public forum. My question (in the clear) is if there is an existing means to pe

Re: Fwd: Negation overflow in readelf.c

2015-08-12 Thread Nick Clifton
Hi Dingbao, If you build binutils-2.25 with ubsan (require gcc-4.9 or clang-3.3) and execute command: readelf -a test_file (test files are in the attachment). You will see 3 runtime errors: readelf.c:1543:39: runtime error: negation of -9223372036854775808 cannot be represented in type 'bfd_sig

Re: Off-by-one error in ld documentation

2015-09-03 Thread Nick Clifton
Hi Mark, In ld/ld.texinfo, the following example code is offered: start_of_ROM = .ROM; end_of_ROM = .ROM + sizeof (.ROM) - 1; start_of_FLASH = .FLASH; Then the C source code to perform the copy would be: extern char start_of_ROM, end_of_ROM, start_of_FLASH; memcpy (& start_o

Re: Off-by-one error in ld documentation

2015-09-07 Thread Nick Clifton
Hi Hans-Peter, extern char start_of_ROM, end_of_ROM, start_of_FLASH; memcpy (& start_of_FLASH, & start_of_ROM, & end_of_ROM - & start_of_ROM); While we're at that example, is there a reason why it is pretending that the symbols are for variables whose address is then taken (to get the

Re: Off-by-one error in ld documentation

2015-09-08 Thread Nick Clifton
Hi Hans-Peter, Nicely, thanks. While there's a point in keeping just one version for simplicity, the educational point of "here's what you may write which doesn't work, here's the semantically corrected code, and this is what you should have written in the first place" wins, IMHO. Good. I ha

Re: [Bug binutils/19104] [PATCH] 'add symbol' feature in objcopy

2015-10-19 Thread Nick Clifton
Hi Ronald, How about this: If the symbol already exists and the symbol that is being added has the warning flag set, then it is treated as the addition of a warning, and it is inserted before the real symbol. Otherwise if the new version of the symbol has the same flags as the current ver

Re: [Bug gas/19109] Cannot configure default flag_compress_debug

2015-10-19 Thread Nick Clifton
Hi H.J. How about --enable-assembler-compressed-debug-sections or --enable-compressed-debug-sections-in-assembler? Either is OK, but ... if we agree that we should also being configuring the linker to also generate compressed debug sections by default, then it would make sense to just have o

Re: readelf patch

2015-10-27 Thread Nick Clifton
Hi Stephen, Here is a patch to add support to readelf for showing the details of two more types of NetBSD ELF notes. The patches are taken from the cvs repo of NetBSD, where the changes were applied to their copy a while back. Do you have a binutils FSF copyright assignment on file ? (I look

Re: pdp-11 TARGET_PAGE_SIZE mismatch in 2.25

2015-11-20 Thread Nick Clifton
Hi David, In binutils-2.25 the files pfd/pdp11.c and ld/emulparams/pdp11.sh both define TARGET_PAGE_SIZE but the values are different. This causes weirdness in the linker output, namely symbol values are set by one while the sections' lma/vma values are set by the other. I went with the smalle

Re: bug in addr2line with -j option

2015-12-22 Thread Nick Clifton
Hi Amir, I just found some small issue where addr2line finds the symbols if it searches all sections but when call with '-j .text' (i.e. a single section where the symbol in there) it doesn't finds it. addr2linw without -j addr2line -e helloworld 0x123456 helloworld.c:51 addr2line with -j addr

Re: [Bug binutils/19421] New: Missing weak symbols in kernel modules on ppc64el

2016-01-08 Thread Nick Clifton
Hi Alan, Have you seen this bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=19421 Summary: Missing weak symbols in kernel modules on ppc64el Quite a few symbols in kernel modules on ppc64el are dropped after upgrading to binutils 2.25. This in turn completely br

Re: [Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-22 Thread Nick Clifton
Hi Xinliangli, However I do think ld's behavior is not correct here. Should linker first decide if some sections are 'root' sections that should not be throw away and then decide if other sections should be GCed? Here linker first prunes the references and then is forced to discard section not b

Re: Fix undefined shift overflow

2016-02-01 Thread Nick Clifton
Hi Michael, Shifting into and out of the sign bit of an integer is undefined, and this loop unconditionally does both. The below patch should fix it. Patch approved and applied. Thanks for reporting this. Cheers Nick ___ bug-binutils mailing l

Re: Fix undefined shift overflow

2016-02-03 Thread Nick Clifton
Hi Michael, This idiom also appears in newlib and in various versions of GDB and associated codebases. I'm not sure how this maps to actual development repos. Well GDB shares a repo with the binutils, but newlib has its own repo. All forms I found are one of the following source text snippet

Re: binutils 2.25.1 creates big sparse files

2016-02-05 Thread Nick Clifton
Hi Joakim, > When building small libs/exec on ppc32 I usally get sparse files like so: > binutils 2.25.1 doing in this commit: > (Set ppc COMMONPAGESIZE to 64k) > > This is a huge problem as these sparse file are packaged into a > tar file and when unpacked they lose the sparse attribute and wil

Re: OCTETS_PER_BYTE and Gas

2016-02-18 Thread Nick Clifton
two targets where OCTETS_PER_BYTE_POWER is 2 (tic4x and tic54x), so I would hope that in general we have the octets vs bytes thing sorted out. Attached is the patch that I am going to apply. Cheers Nick gas/ChangeLog 2016-02-18 Dan Gisselquist Nick Clifton * read.c (f

Re: [libopcodes] Decoder crash and incorrect results

2016-02-19 Thread Nick Clifton
Hi Nathan, > Redhat Enterprise Linux 6. RHEL 6 contains a very old version of the binutils (2.20). We are now on release 2.26... > I have found that the library will segfault given certain inputs > to print_insn_i386. Here is the code I am using to decode: Does the library also crash if you p

Re: Bunutils bug report

2016-02-23 Thread Nick Clifton
Hi Piotr, > /usr/bin/ld: BFD (GNU Binutils for Debian) 2.22 2.22 is quite an old release. Please could you try the latest release (2.26) and see if the problem persists. If the problem is still there, please could you file a bug report here: https://sourceware.org/bugzilla/ Including a te

Re: [Bug ld/19623] regression: erroneous relocation for symbols in absolute section (vma == 0)

2016-03-15 Thread Nick Clifton
> Yes, the backport is fine with me. > > Can the OP commit it ? I think not, so I have taken the liberty and applied it myself. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils

Re: Problems in as.1

2016-03-19 Thread Nick Clifton
ARGET-SPECIFIC OPTIONS", so instead I have opted for "TARGET". This is probably due to my non-existent Perl programming skills, but anyway. So I have checked in the attached patch in order to fix the problem. Cheers Nick gas/ChangeLog 2016-03-18 Nick Clifton * doc/a

Re: file stripping with a non root account seems problematic.

2016-04-28 Thread Nick Clifton
Hi Kyle, > $ strip --strip-unneeded libubsec.so > strip: unable to copy file 'libubsec.so'; reason: Permission denied > > In rename.c > on an existing file; > prior to invoking function creat > the file must unlinked? Hmm, this sounds like a possible file permission issue. Can you provide a mor

Re: MIPS version of LD not honoring -Ttext for .MIPS.abiflags section

2016-05-25 Thread Nick Clifton
Hi Geoff, > When compiling one of the u-boot demo applications using the > "-Ttext 0x8020" option, the resulting elf file has a > .MIPS.abiflags section with a load address of "004000b8". Have you tried adding: --start-address=.MIPS.abiflags=0x8030 (or whatever address you want) ?

Re: MIPS version of LD not honoring -Ttext for .MIPS.abiflags section

2016-05-26 Thread Nick Clifton
Hi Geoff, > The problem with the first approach is I would like the linker > to just pack the MIPS abiflags section with the .text, .got and > .rodata sections so I don't have to calculate the size of the > other sections ahead of time. Is the .MIPS.abiflags section a fixed size ? I suspect th

Re: [Bug ld/20152] constructors for c++ objects are sometimes discarded when linked via a .a archive

2016-06-03 Thread Nick Clifton
Hi Dave, > * if foo.o is linked directly into an executable, f's ctor is run before > "main". > * if foo.o is linked into a .a and then that .a is linked into an > executable, > f's ctor may or may not be run before "main". The constructor is only run if > there's at least one symbol in foo.

Re: Missing support for demangling lambdas with auto paramters in libbfd?

2016-07-05 Thread Nick Clifton
Hi Ronny, > c++filt and libbfd are unable to demangle the last two: (binutils > version 2.26 on Kubuntu 16.04) Thanks for reporting this problem. Unfortunately you have reported it to the wrong place. Name demangling is handled by the libiberty library which is part of the GCC project, not the

Re: [Bug gas/20427] Solaris rtld on SPARC does not allow R_SPARC_UA64 or R_SPARC_64 relocations in 32-bit executables

2016-08-02 Thread Nick Clifton
Hi Stefan, > So, this is what happens if i re-write the test32.S program for the Sun > SPARC assembler: > .comm .gomp_critical_user_, 64, 8 > Relocation section '.rela.data' at offset 0xf8 contains 1 entries: > Offset InfoTypeSym. Value Symbol's Name + Addend > 000

Re: [Bug ld/20436] New: Testsuite ld-plugin/lto.exp fails

2016-08-05 Thread Nick Clifton
Hi H.J. Please could you look at this bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=20436 It appears to be a direct consequence of your patch from 2016-04-21: * testsuite/lib/ld-lib.exp (check_lto_available): Return 1 on Linux with GCC 4.9 or newer. (ch

Re: ld 2.27: segfault on armv7h on input in 'binary' format

2016-08-23 Thread Nick Clifton
Hi redfish, > $ touch foo.dat > $ /usr/bin/ld -r -b binary -o /tmp/foo.o foo.dat > Segmentation fault (core dumped) Ah - snafu - fixed by this patch. Cheers Nick bfd/ChangeLog 2016-08-23 Nick Clifton * elf32-arm.c (elf32_arm_count_additional_relocs): Return zero if

Re: [BUG] ld internal error while trying to link clang

2016-09-26 Thread Nick Clifton
Hi Lucien, > /usr/bin/ld: BFD (GNU Binutils for Debian) 2.26.1 internal error, aborting at > ../../bfd/merge.c:905 in _bfd_merged_section_offset Thanks for reporting this problem. The 2.26.1 release is a little old now - there is a 2.27 release available. So the problem may have already been

Re: [Bug ld/20528] ld -r doesn't handle SHF_EXCLUDE section properly

2016-09-28 Thread Nick Clifton
Hi H.J. > This works: > > diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em > index dd4d35a..6ce4e00 100644 > --- a/ld/emultempl/elf32.em > +++ b/ld/emultempl/elf32.em > @@ -1903,9 +1903,16 @@ gld${EMULATION_NAME}_place_orphan (asection *s, > lang_insert_orphan to create a new outp

Re: Infinite recursion in binutils 2.27 (ld, gdb, c++filt)

2016-10-06 Thread Nick Clifton
Hi Matthieu, > We are hitting an infinite recursion in "ld", eventually leading to a > stackoverflow Please could you file a bug report at: https://gcc.gnu.org/bugzilla/enter_bug.cgi?product=gcc (Note - this is the GCC bug reporting system not the binutils bug reporting system. This is bec

Re: [Bug gas/20692] gas failed on SPARC

2016-10-17 Thread Nick Clifton
Hi Igor, >> You could try adding "-D.volatile= -D.nonvolatile= -Wa,--no-relax" to the > your solution doesn't work. > GAS command line on SPARC not accepted -Wa,--no-relax > we can use -no-relax Oops - I had too many dashes, sorry about that. > - but it is not fixed my problem Well, it does

Re: Translatable strings not marked 'c-format'

2016-10-19 Thread Nick Clifton
ably also need an update, but I am leaving this for another time. Cheers Nick bfd/ChangeLog 2016-10-19 Nick Clifton * aout-adobe.c: Add missing c-format tags for translatable strings. * aout-cris.c: Likewise. * aoutx.h: Likewise. * bfd.c: Likewise.

Re: Translatable strings not marked 'c-format'

2016-10-20 Thread Nick Clifton
Hi Ask, > Do you know when the translation > templates on translationproject.org will be updated? On translationproject.org - no. But I have just updated the bfd.pot template in the binutils source repository (which I forgot to do yesterday, sorry). Cheers Nick _

Re: objdump '--stop-address' option stop on a wrong ending address

2016-11-07 Thread Nick Clifton
Hi Florian, > I try to extract function assembly code with objdump using > "--start-address" and "--stop-address" options but the stop address stop > on the second to last address. > $ objdump --start-address=0x50c40 --stop-address=0x50c5f -d >50c59: b8 01 00 00 00 mov$0x1,%

Re: [Bug ld/20828] GC-ed DSO symbols make corresponding symbols defined by a linker script local

2017-01-19 Thread Nick Clifton
Hi Maciej, > Fixed as per the automatic commit messages. Unfortunately the new test fails for some targets: Checking Binutils in: bfin-elf ... LD REGRESSION: PR ld/20828 dynamic symbols with Checking Binutils in: riscv32-elf ... LD REGRESSION: PR ld/20828 dynamic symbols with Checking Binuti

Re: Fwd: GNU Binutils-2.7 - Unable to configure

2017-01-27 Thread Nick Clifton
Hi Neha, > When I try to configure it, I get the following error - > > binutils-2.7> ./configure > Invalid configuration `x86_64-unknown-linuxoldld': machine `x86_64-unknown' > not recognized It sounds like you are using an extremely old set of binutils sources. We are currently on release 2.2

Re: relocation information disappears

2017-04-07 Thread Nick Clifton
Hi Katsuya, > # ~/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-readelf > -r w I assume that you mean "readelf -D -r w" here, as you are looking for dynamic relocs ? > Relocation section '.rel.dyn' at offset 0x270 contains 1 entries: > Offset InfoTypeSym.

Re: binutils options

2017-04-10 Thread Nick Clifton
Hi Parul, > I am also able to do testing of binutils using dejaGNU. But, there are few > options for which I am stuck up and not able to test these options. These are > as follows if someone can help: > > 1.--strip-discarded > 2.--no-strip-discarded > 3.--emb

<    1   2   3   4   5   6   >