Make sure _end is aligned to 4 or 8 bytes (depending on elf32 or elf64).
This commit is contained in:
parent
c5dd236491
commit
60b43a9445
2
gnu/dist/ld/scripttempl/elf.sc
vendored
2
gnu/dist/ld/scripttempl/elf.sc
vendored
@ -28,6 +28,7 @@ if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHI
|
||||
test "$LD_FLAG" = "N" && DATA_ADDR=.
|
||||
INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
|
||||
PLT=".plt ${RELOCATING-0} : { *(.plt) }"
|
||||
ELFALIGN=`expr ${ELFSIZE} / 8`
|
||||
|
||||
# if this is for an embedded system, don't add SIZEOF_HEADERS.
|
||||
if [ -z "$EMBEDDED" ]; then
|
||||
@ -148,6 +149,7 @@ SECTIONS
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
${RELOCATING+. = ALIGN(${ELFALIGN});}
|
||||
${RELOCATING+_end = . ;}
|
||||
${RELOCATING+PROVIDE (end = .);}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user