This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: section indices for special sections


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]