This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Reserve a few .dynamic entries (take 2)
- To: jakub at redhat dot com
- Subject: Re: [PATCH] Reserve a few .dynamic entries (take 2)
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 4 Jul 2001 10:48:00 -0700
- Cc: binutils at sourceware dot cygnus dot com
- References: <20010703162950.A26049@lucon.org>
On Tue, Jul 03, 2001 at 04:29:50PM -0700, H . J . Lu wrote:
> Hi Jakub,
>
> I don't think this patch is correct. It creates dynamic entries even
> for static binaries. First, they are not necessary for static binaries.
> Secondly,
>
> # gcc -static foo.c
>
> dumps core for Linux/mips. I think you should pad .dynamic when you
> create it.
>
>
> H.J.
> ----
> 2001-06-08 Jakub Jelinek <jakub@redhat.com>
>
> * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
> (DYNAMIC): Use it to reserve few dynamic entries for post-linking
> tools.
>
Can we add another switch to the ELF linker like
--reserve-dynamic N
H.J.