This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: section indices for special sections
- From: Alan Modra <amodra at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Binutils Development <binutils at sourceware dot org>
- Date: Tue, 8 Jan 2013 00:31:34 +1030
- Subject: Re: section indices for special sections
- References: <87txqzwgce.fsf@fleche.redhat.com>
On Wed, Jan 02, 2013 at 12:10:57PM -0700, Tom Tromey wrote:
> --- a/bfd/section.c
> +++ b/bfd/section.c
> @@ -663,7 +663,7 @@ CODE_FRAGMENT
> .
> .#define BFD_FAKE_SECTION(SEC, FLAGS, SYM, NAME, IDX) \
> . {* name, id, index, next, prev, flags, user_set_vma, *} \
> -. { NAME, IDX, 0, NULL, NULL, FLAGS, 0, \
> +. { NAME, IDX, - IDX - 1, NULL, NULL, FLAGS, 0, \
> . \
> . {* linker_mark, linker_has_input, gc_mark, decompress_status, *} \
> . 0, 0, 1, 0, \
I think this is probably OK as far as ld is concerned. Please be sure
to regression test this on ARM and PowerPC64.
--
Alan Modra
Australia Development Lab, IBM