Re: ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread Nick Clifton
Hi Jori, We encountered a linking error in 11.1 and 11.2 of the ARM GNU Toolchain. If this is a toolchain produced by ARM, then you really need to contact them, not us. If you can reproduce the problem using the GNU Binutils sources directly, then please feel free to report the bug here: ht

Re: LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-28 Thread John B Thiel
On Mon, Feb 28, 2022 at 6:43 AM Nick Clifton wrote: > Hi John, > > > If you need some exe/object files, traces, etc. let me know and I will > try to supply. > Yes please. If you can give me an x86_64 version of the failing > executable I can try examining it to see what is going wrong. > Is ther

Re: LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-28 Thread Nick Clifton
Hi John, If you need some exe/object files, traces, etc. let me know and I will try to supply. Yes please. If you can give me an x86_64 version of the failing executable I can try examining it to see what is going wrong. Is there any chance that you could provide a test case that only uses

Re: LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread John B Thiel
On Thu, Feb 17, 2022 at 3:54 AM Nick Clifton wrote: > Hi John, > > > It appears that LD in binutils versions after 2.35 is producing segfault > executables with Free Pascal 2.6.4. You cannot build a working HelloWorld. > > Please could you file a bug report about this issue using the binutils >

Re: LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread Nick Clifton
Hi John, It appears that LD in binutils versions after 2.35 is producing segfault executables with Free Pascal 2.6.4.  You cannot build a working HelloWorld. Please could you file a bug report about this issue using the binutils bugzilla system: https://sourceware.org/bugzilla/enter_bug.cg

Re: ld: Neither "FILL(x);" nor "{ }>Memory = x" allow symbols

2020-01-27 Thread Alan Modra
On Fri, Jan 24, 2020 at 03:34:45PM +1100, john.adri...@bigpond.com wrote: [on trying to use a symbol in a fill expression] > arm-none-eabi/bin/ld.exe: bfd_link_hash_lookup failed: no error (It's the > "no error" part that I like the most!) Yes, that is silly. I'm going to commit the following to

Re: LD Error from Pure Abstract Deconstructor [binutils-src-2012.09-62-i686-pc-linux-gnu-i386-linux]

2019-08-06 Thread Alan Modra
On Thu, Aug 01, 2019 at 03:18:16PM -0400, Ryan Lagasse wrote: > /home/user/dir/dir/br_extern/output/dir/host/opt/ext-toolchain/bin/../lib/gc > c/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: BFD > (Sourcery CodeBench Lite 2012.09-62) 2.23.51.20120829 internal error, > aborting at >

Re: ld spurious warning?

2017-02-12 Thread Alan Modra
On Sun, Feb 12, 2017 at 02:08:30AM +, Peter Johnson wrote: > https://coldplace.net/basm.o How was this file made? It has an invalid symbol table. [ 3] .symtab SYMTAB 0001f0 a8 18 4 6 8 sh_info above says the first global symbol is at index

Re: ld: once multiple symbol definitions are allowed, both definitions end up in the executable

2017-01-17 Thread Jim Wilson
On Tue, Jan 17, 2017 at 6:56 AM, Pavel Shishpor wrote: > Thanks a lot for the answer: it put me on the right track. The > '-ffunction-sections' option works OK on toy examples though GNU linker > crashed when I tried the following on real-life object files compiled with > -ffunction-sections and -

Re: ld: once multiple symbol definitions are allowed, both definitions end up in the executable

2017-01-17 Thread Pavel Shishpor
Thanks a lot for the answer: it put me on the right track. The '-ffunction-sections' option works OK on toy examples though GNU linker crashed when I tried the following on real-life object files compiled with -ffunction-sections and -fdata-sections options enabled: for i in $object_files_original

Re: ld: once multiple symbol definitions are allowed, both definitions end up in the executable

2017-01-11 Thread Jim Wilson
On 01/11/2017 01:49 AM, Pavel Shishpor wrote: Could please someone advice is it a bug or a feature when we get both bodies of the functions with the same name in the executable once multiple symbol definitions are allowed? Here is the example showing the behavior: The only thing that the --allo

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

Re: ld: Wrong error message on unknown -r* and -i* command-line options

2015-02-23 Thread Nicholas Clifton
Hi Igor, $ ld -iqwerty ld: bad -rpath option Thanks very much for reporting this problem. I have checked in the patch below to fix the bug. In the future though, please could you use the binutils bugzilla system to report bugs: https://sourceware.org/bugzilla Cheers Nick ld/ChangeLog

Re: ld gold stops looking for lib if it finds incompatible one first

2011-08-23 Thread Arkadiusz Miskiewicz
On Wednesday 24 of August 2011, Ian Lance Taylor wrote: > Arkadiusz Miskiewicz writes: > > Linux x86_64, 64 bit userspace > > > > binutils 2.21.53.0.2 > > > > bfd works fine > > $ ld.bfd -shared -o ulogd_BASE.so ulogd_BASE_sh.o -lc > > > > but gold fails > > $ ld.gold -shared -o ulogd_BASE.so u

Re: ld gold stops looking for lib if it finds incompatible one first

2011-08-23 Thread Ian Lance Taylor
Arkadiusz Miskiewicz writes: > Linux x86_64, 64 bit userspace > > binutils 2.21.53.0.2 > > bfd works fine > $ ld.bfd -shared -o ulogd_BASE.so ulogd_BASE_sh.o -lc > > but gold fails > $ ld.gold -shared -o ulogd_BASE.so ulogd_BASE_sh.o -lc > ld.gold: warning: skipping incompatible /usr/lib/libc.so

Re: ld: spurious empty .plt/.rela.plt sections generated

2011-05-01 Thread H.J. Lu
On Sat, Apr 30, 2011 at 6:13 PM, H.J. Lu wrote: > On Sat, Apr 30, 2011 at 4:57 PM, Alan Modra wrote: >> On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote: >>> I am seeing a strange thing.  The (BFD) linker spuriously generates .plt >>> and .rela.plt sections (both empty) for a link t

Re: ld: spurious empty .plt/.rela.plt sections generated

2011-04-30 Thread H.J. Lu
On Sat, Apr 30, 2011 at 4:57 PM, Alan Modra wrote: > On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote: >> I am seeing a strange thing.  The (BFD) linker spuriously generates .plt >> and .rela.plt sections (both empty) for a link that has no need for them. >> It's reproduced with a tr

Re: ld: spurious empty .plt/.rela.plt sections generated

2011-04-30 Thread Alan Modra
On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote: > I am seeing a strange thing. The (BFD) linker spuriously generates .plt > and .rela.plt sections (both empty) for a link that has no need for them. > It's reproduced with a trivial example, and seen on today's binutils trunk. > Gold

Re: ld option -rdynamic not documented

2010-12-18 Thread Joseph S. Myers
On Sat, 18 Dec 2010, Peter Eisentraut wrote: > This works, in fact, but the option -rdynamic is not documented. I > understand that GNU ld supports a whole host of legacy and compatibility > options, but in case you don't want to document it, could you point out > what the canonical option name i

Re: ld error ( libbfd.la not recognised ) while porting binutils-2.19

2010-02-02 Thread Nick Clifton
Hi Prashant, gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o 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 eelf32my_target.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz ../bfd/lib

Re: ld segfault -> NULL pointer dereference in bfd/elf32-ppc.c

2009-12-16 Thread Alan Modra
On Mon, Dec 07, 2009 at 10:30:15AM +0100, Adrien Demarez wrote: > I experience an ld segfault when trying to compile QT4.6 in > OpenEmbedded/Angstrom for the PPC platform (MPC8313 more precisely). The > following patch (against the CVS version) solves this : after having a > look at the core fi

Re: ld crash (target x86_64-w64-mingw32 mutilib gcc)

2009-12-14 Thread Hector Oron
Hi, 2009/12/14 xxcv : > ccache x86_64-w64-mingw32-gcc -m32 -o lua.exe -s lua.o lua51.dll -lm > collect2: ld terminated with signal 11 [Segmentation fault] > GNU ld (GNU Binutils) 2.20.51.20091214 Could you disable ccache on your build (might be a ccache bug)? -- Héctor Orón "Our Sun unleashe

Re: ld segfault -> NULL pointer dereference in bfd/elf32-ppc.c

2009-12-07 Thread Alan Modra
On Mon, Dec 07, 2009 at 10:30:15AM +0100, Adrien Demarez wrote: > Hello, > > I experience an ld segfault when trying to compile QT4.6 in > OpenEmbedded/Angstrom for the PPC platform (MPC8313 more precisely). The > following patch (against the CVS version) solves this : after having a > look at

Re: Ld - 2.17.90 patch level 2.247 elfxx-mips.c

2009-09-23 Thread Nick Clifton
Hi VIJAYENDRA, #0 htab_traverse (htab=0x0, callback=0x8098370 , I have seen this sort of thing before. It usually happens because the linker has been given an input file which is not the same type as the output file it has been asked to generate. Eg because main.o is not a mips-elf object

Re: Re: Ld - 2.17.90 patch level 2.247 elfxx-mips.c

2009-09-23 Thread VIJAYENDRA SUMAN
version.   Regards Vijayendra Suman   --- Original Message ---Sender : Nick CliftonDate : Sep 23, 2009 18:03 (GMT+09:00)Title : Re: Ld - 2.17.90 patch level 2.247 elfxx-mips.cHi VIJAYENDRA, > After applying the patch for 2.247 of elfxx-mips.c,  >  when i compile i get segfault Ple

Re: Ld - 2.17.90 patch level 2.247 elfxx-mips.c

2009-09-23 Thread Nick Clifton
Hi VIJAYENDRA, After applying the patch for 2.247 of elfxx-mips.c, > when i compile i get segfault Please could you try using the latest version of the linker (ie one built from the head of the mainline binutils cvs sources). If the problem still exists, please could you open a bug report

Re: ld segfaults on parisc

2009-03-19 Thread Andreas Schwab
Alexander Beregalov writes: > 2009/3/17 Andreas Schwab : >> Could you please try this patch? >> >> Andreas. >> >> 2009-03-17  Andreas Schwab   >> >>        * elf32-hppa.c (final_link_relocate): Cast bfd_vma value to long >>        for format string. >> > It works, thanks! Thanks for testing. I

Re: ld segfaults on parisc

2009-03-18 Thread Alexander Beregalov
2009/3/17 Andreas Schwab : > Alexander Beregalov writes: > >> #0  strlen (str=0xc84 ) at strlen.c:64 >> #1  0x407b7530 in _IO_vfprintf_internal (s=0xfb1487a0, >>     format=0xfb147d80 "arch/parisc/kernel/built-in.o(.text+0x%lx): >> cannot reach %s, recompile with -ffunction-sections", ap=0xfb147d0

Re: ld segfaults on parisc

2009-03-17 Thread Andreas Schwab
Alexander Beregalov writes: > #0 strlen (str=0xc84 ) at strlen.c:64 > #1 0x407b7530 in _IO_vfprintf_internal (s=0xfb1487a0, > format=0xfb147d80 "arch/parisc/kernel/built-in.o(.text+0x%lx): > cannot reach %s, recompile with -ffunction-sections", ap=0xfb147d0c) > at vfprintf.c:1581 > #2

Re: ld patch to prevent uninitialized data in TI COFF output

2008-12-23 Thread Nick Clifton
Hi Johan, The attached patches correct an issue that exists in ld when the object code format is TI COFF. Thanks you very much for submitting this patch. I have checked it into the binutils sources along with these changelog entries. Cheers Nick bfd/ChangeLog 2008-12-23 Johan Olmutz Ni

Re: LD-problem

2008-12-01 Thread Nick Clifton
Hi Søren, Hi I get the following error during transformation of a binary files into a text-segment. Not quite sure what you mean here. Are you trying to convert a binary file into an object file so that you can include it in a larger program ? (In which case it would probably be a data sec

Re: ld should support --no-fatal-warnings

2008-06-04 Thread Nick Clifton
Hi Chris, This turns out to be convenient in cases where one's build system defaults to "ld --fatal-warning" but occasionally one would like to override it. It's also parallel to existing gcc conventions for setting and unsetting options. See attached diff to ld/lexsup.c; it's against 2.17

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: 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: ld behavior on different architectures

2007-06-18 Thread Nick Clifton
Hi Constantine, First of all, excuse me if i'm asking a naive question. I'm a complete noob at using linker scripts (and generally ld), so please give me a helping hand. Certainly, although you are treading in a dark and mysterious region of programming. I would suggest that you read up on

Re: ld crashes when building ZDoom with winelib

2007-05-01 Thread Benjamin Berkels
Hi Nick, >> It happens to me under Ubuntu 7.04 and openSUSE 10.2 with the GNU >> binutils and Wine versions supplied by these distros. > > Can you please tell us which versions these are ? Sure, according to Ubuntu the versions are: wine = 0.9.36~winehq0~ubuntu~7.04.1 (feisty) binutils = 2.17.20

Re: ld crashes when building ZDoom with winelib

2007-05-01 Thread Nick Clifton
Hi Benjamin, First excuse me, if this is the wrong place to report this, No this is the right place. If you want to, you could also submit a bug report at: http://sourceware.org/bugzilla but AFAIK ld should not crash, no matter what I try to link. True. It happens to me under Ubuntu

Re: ld dumps core on siginal 11 - segfault

2007-03-28 Thread Nick Clifton
Hi Daniel, strata:/home/dr2867/c/modules 1026 $$$ ->as --version GNU assembler 2.15 [FreeBSD] 2004-05-23 This is an old version of the assembler. strata:/home/dr2867/c/modules 1028 $$$ ->ld --version GNU ld version 2.15 [FreeBSD] 2004-05-23 And an old version of the linker. We are at rele

Re: ld barfs when cross compiling for avr

2007-03-23 Thread Nick Clifton
Hi Ilya, I am getting the following error when building an application for avr platform (atmega1281 MCU, to be specific) Please could you check to see if this problem still happens with a linker built from the current mainline CVS binutils sources. If it does then please could you open a bu

Re: ld 2.17 internal error

2007-03-21 Thread Nick Clifton
Hi Will, Is this a known error, No. anything I can do to work round it? Maybe, but without more information it is hard to say. Try generating a map file (-M option to the linker). There should be an more informative error message put into this file which might suggest a workaround. S

Re: ld section merging on aix

2006-12-19 Thread Douglas B Rupp
Nick Clifton wrote: Hi Doug, .debug_* sections of the same name aren't getting merged in the executable. Try looking at the linker script that is being used. You may need to add explicit entries for the debug sections. Cheers Nick Thanks, that was a useful suggestion that got me ou

Re: ld section merging on aix

2006-12-18 Thread Nick Clifton
Hi Doug, .debug_* sections of the same name aren't getting merged in the executable. Try looking at the linker script that is being used. You may need to add explicit entries for the debug sections. Cheers Nick ___ bug-binutils mailing list

Re: ld unwilling to find libs in configured paths

2006-05-19 Thread Ian Lance Taylor
Dennis Heuer <[EMAIL PROTECTED]> writes: > Today I installed a new i386 linux system from source with linux 2.6.16, > gcc 4.1.0, glibc 2.4, and binutils 2.16. The problem I have is that ld > refuses to detect libraries at other locations than /lib and /usr/lib > though ld.so.conf and (LD_)LIBRARY_

Re: ld: BFD 2.16.91 20060118 Debian GNU/Linux internal error, aborting at ../../bfd/elf32-i386.c line 3117 in elf_i386_finish_dynamic_symbol

2006-04-30 Thread Alan Modra
On Sun, Apr 30, 2006 at 01:04:44PM -0400, Tom wrote: > binutils: 2.16.1cvs20060117 > gcc: 4.0.3 > > http://www.cygwin.com/bugzilla/show_bug.cgi?id=1025 seems to be very > similar, but it was patched months ago according to the comments. It was patched on mainline, not on the 2.16 branch. -- Ala

Re: ld error: internal error, aborting at ../../bfd/cache.c line 495 in bfd_cache_lookup_worker

2006-01-31 Thread Daniel Jacobowitz
On Mon, Jan 30, 2006 at 01:09:56AM +1100, John Pye wrote: > > /usr/bin/ld: BFD 2.15.94.0.2.2 20041220 internal error, aborting at > > ../../bfd/cache.c line 495 in bfd_cache_lookup_worker > > > > /usr/bin/ld: Please report this bug. FYI, this abort is no longer present in current versions. It use

Re: ld 2.16.1: Ordered & unordered sections error on IA64

2005-12-22 Thread James E Wilson
On Thu, 2005-12-22 at 10:25, John S. Worley wrote: > ld: .data has both ordered and unordered sections > ld: find link failed: Bad value You might try using FSF binutils mainline, to see if perhaps the problem is already fixed. Current binutils mainline will emit a more helpful message, which giv

Re: ld doesn't warn about undefined symbols

2005-11-04 Thread Daniel Jacobowitz
On Wed, Nov 02, 2005 at 06:01:03PM +0100, Jakub Jermar wrote: > ld (from binutils 2.16) on mipsel doesn't warn about > undefined symbols with elf32-little and binary output > formats (and possibly others). > > When the output format is elf32-tradlittlemips, undefined > symbols are reported as e

Re: ld 2.16 bug in linker script ?

2005-10-16 Thread Alan Modra
On Tue, Oct 11, 2005 at 07:27:45PM +0200, Philippe Biondi wrote: > On Mon, 10 Oct 2005, Alan Modra wrote: > > >On Sun, Oct 09, 2005 at 05:28:15PM +0200, Philippe Biondi wrote: > >>but I think these two linker scripts should be equivalent. > > > >No, you haven't specified where .got should go (*).

Re: ld 2.16 bug in linker script ?

2005-10-11 Thread Philippe Biondi
On Mon, 10 Oct 2005, Alan Modra wrote: On Sun, Oct 09, 2005 at 05:28:15PM +0200, Philippe Biondi wrote: but I think these two linker scripts should be equivalent. No, you haven't specified where .got should go (*). ld is free to place unspecified sections where it likes. *) Which is quite f

Re: ld 2.16 bug in linker script ?

2005-10-09 Thread Alan Modra
On Sun, Oct 09, 2005 at 05:28:15PM +0200, Philippe Biondi wrote: > but I think these two linker scripts should be equivalent. No, you haven't specified where .got should go (*). ld is free to place unspecified sections where it likes. *) Which is quite foolish, given that you defined a symbol th

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: ld overwriting output sections???

2005-09-11 Thread Jakub Jermar
The linker script I sent you yesterday is missing the magical line. The one below is ok. jj Hello binutils people, my team discovered a strange problem with the linker script which I attach to this email. Depending on the presence of the line containing: LONG(0xdeadbeaf); the ker

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 relocate symbols(in small common section) to a unaligned address.(on mips r3000 target)

2005-09-09 Thread zhigang gong
Hi Nick, I am sorry for sent the big attachment to everyone in this mailist. I do will not do that thing from now on. Beacuse I can't access the cvs(behind a firewire) server. I just download the binutils-050909 , gcc-4.0-20050901 and newlib-1.13.0. And I rebuild binutils and gc

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-07 Thread zhigang gong
Hi Nick, Tanks for you reply so soonly. I had already download the latest snapshot(binutils-050907), and the problem has not resolve yet.I try to make the case smaller, but i failed. As when I make some modification ,the problem will not exist any more. I have to send you a little big tes

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: BFD 2.15.92.0.2 20040927 internal error, aborting at ../../bfd/elf32-i386.c line 2262 in elf_i386_relocate_section

2005-07-15 Thread Daniel Jacobowitz
On Fri, Jul 15, 2005 at 03:39:50PM -0400, David Lawless wrote: > Is this the correct approach? Or am I missing some important > detail, such as not making certain symbols LOCAL? Or am I > on entirely the wrong path for obtain my objective? Local symbols are not accessible from outside of the fil

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: 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: ld fails to link if library order is reversed

2005-03-07 Thread Ian Lance Taylor
Nilmoni Deb <[EMAIL PROTECTED]> writes: > > 1) It's traditional Unix behaviour, so changing it will break some > >programs. > > Any example ? I don't have any specific examples, no. > > 2) It is more efficient, as the linker can just walk through an > >archive's symbol table, include al

Re: ld fails to link if library order is reversed

2005-03-07 Thread Nilmoni Deb
On Mon, 7 Mar 2005, Ian Lance Taylor wrote: > Nilmoni Deb <[EMAIL PROTECTED]> writes: > > > > This is correct and documented behaviour. All Unix linkers behave > > > this way. > > > > In other words, its a feature, not a bug. It seems that the ICC (intel > > cc) on linux does not have this featu

Re: ld fails to link if library order is reversed

2005-03-07 Thread Ian Lance Taylor
Nilmoni Deb <[EMAIL PROTECTED]> writes: > > This is correct and documented behaviour. All Unix linkers behave > > this way. > > In other words, its a feature, not a bug. It seems that the ICC (intel > cc) on linux does not have this feature. Really? I haven't tried it myself. > Just wondering

Re: ld fails to link if library order is reversed

2005-03-07 Thread Nilmoni Deb
On Mon, 7 Mar 2005, Ian Lance Taylor wrote: > Nilmoni Deb <[EMAIL PROTECTED]> writes: > > > Lets say I am running the following command > > > > gcc z.o -lX -lY -o z > > > > and libX.a depends on a function that is defined in libY.a then the order > > of linking appears to be important. While

Re: ld fails to link if library order is reversed

2005-03-07 Thread Ian Lance Taylor
Nilmoni Deb <[EMAIL PROTECTED]> writes: > Lets say I am running the following command > > gcc z.o -lX -lY -o z > > and libX.a depends on a function that is defined in libY.a then the order > of linking appears to be important. While the previous command works, the > next one (with order re