[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Option -n does not work with ld in binutils-2.12
From: |
Nick Clifton |
Subject: |
Re: Option -n does not work with ld in binutils-2.12 |
Date: |
10 Apr 2002 15:05:10 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
Hi Tobias,
> I think there is a bug somewhere in the option parsing of ld,
> because -n is not the same as --nmagic (which works). My guess is
> that ld interprets -n as the beginning of '-nostdlib' or something
> similar.
Hmm, that should not be happening. Can you provide an example please?
> I also think there is something strange going on with the automatic
> ELF PHDRS generation, at least for ARM. I'll look closer at that
> soon, but I wondering if this is a known trouble area.
It can be a problem if you are using a custom linker script, or you
are run strip on your linked executable. But the code should be doing
the right thing, so if something is going wrong, then it is a bug.
> I get the "try linking with -N" error for cases where I should not,
> and I can get strange segments depending on the MEMORY layout. Are
> these known problems? Would you be interested in a more detailed
> report?
Certainly - although please try to keep it reasonably short. Also
please make sure that you are using the latest binutils sources
(either the 2.12 release or a current CVS snapshot) as otherwise you
might be reporting a bug that has already been fixed.
Cheers
Nick