Make sure _end is aligned to 4 or 8 bytes (depending on elf32 or elf64).

This commit is contained in:
thorpej 1997-12-17 03:10:24 +00:00
parent c5dd236491
commit 60b43a9445

View File

@ -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 = .);}