This is the mail archive of the binutils@sources.redhat.com 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]

Re: [PATCH] Reserve a few .dynamic entries


>>>>> "Hans-Peter" == Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:

  >> Date: Wed, 6 Jun 2001 18:13:38 +0200
  >> From: Jakub Jelinek <jakub@redhat.com>

  >> +DYNAMIC=".dynamic     ${RELOCATING-0} : { *(.dynamic) ${RELOCATING+FILL(0) . += 6 * ${ELFSIZE} / 4; } }"

  Hans-Peter> Oh, and I think you need tp rewrite that to not have a '}' in
  Hans-Peter> the '+'-part.  IIRC it breaks with solaris /bin/sh.  Ask Alex
  Hans-Peter> Oliva.

Here is a snippet of a patch that explains this situation.  Hopefully
the comment is sufficient.

  -OTHER_RELOCATING_SECTIONS=${OTHER_RELOCATING_SECTIONS-'
  +
  +# Do not use the ${varname-${varname}} construct here; there will be
  +# problems with some shells (e.g. on Solaris) since there is a bug
  +# that trigs when the incoming macro value contains a "}".
  +test -z "$OTHER_RELOCATING_SECTIONS" && OTHER_RELOCATING_SECTIONS='
    .foo 0 : { *(.foo) }
    .stack 0x30000 : { _stack = .; *(.stack) }
  -'}
  +'

Ben


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