X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fscripttempl%2Felf.sc;h=7994b5f11e8ded26491fe1f699f0406d3245bb5a;hb=b7761f11062dc4d4fd554342ac2d2fb235b65b7a;hp=149eec7ab3e650ddb2c9efd15467c8044a69d85c;hpb=ab2d2ad35dc6107292e37384f6da309aa19774ba;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 149eec7ab3..7994b5f11e 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -1,6 +1,6 @@ # # Unusual variables checked by this code: -# NOP - four byte opcode for no-op (defaults to 0) +# NOP - four byte opcode for no-op (defaults to none) # NO_SMALL_DATA - no .sbss/.sbss2/.sdata/.sdata2 sections if not # empty. # SMALL_DATA_CTOR - .ctors contains small data. @@ -91,6 +91,12 @@ # # Each of these can also have corresponding .rel.* and .rela.* sections. +if test -n "$NOP"; then + FILL="=$NOP" +else + FILL= +fi + test -z "$RODATA_NAME" && RODATA_NAME=rodata test -z "$SDATA_NAME" && SDATA_NAME=sdata test -z "$SBSS_NAME" && SBSS_NAME=sbss @@ -438,7 +444,7 @@ cat <