Align _end symbol to at least 4 in all MIPS scripts

Left-over part of commit 84b2a020da

The _end marker must be aligned to 4-bytes to ensure that the last
element written does not reach beyond the address of _end.  This is
also necessary as the termination condition is an equality test
instead of an ordered test so (_end - _fbss) must be a multiple of
4-bytes.  The alignment is already correct for mti*.ld files, fix
it for all remaining MIPS scripts that don't already align to at
least 4.
This commit is contained in:
Faraz Shahbazker 2019-07-30 00:00:25 +00:00 committed by Corinna Vinschen
parent 3e5302714f
commit 6661a67747
16 changed files with 16 additions and 0 deletions

View File

@ -182,6 +182,7 @@ SECTIONS
*(.gnu.linkonce.b.*) *(.gnu.linkonce.b.*)
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;
} }

View File

@ -135,6 +135,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -135,6 +135,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -137,6 +137,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -143,6 +143,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
PROVIDE (end = .); PROVIDE (end = .);
_end = .; _end = .;

View File

@ -144,6 +144,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
PROVIDE (end = .); PROVIDE (end = .);
_end = .; _end = .;

View File

@ -145,6 +145,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
PROVIDE (end = .); PROVIDE (end = .);
_end = .; _end = .;

View File

@ -95,6 +95,7 @@ SECTIONS
*(.gnu.linkonce.b.*) *(.gnu.linkonce.b.*)
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;
} }

View File

@ -99,6 +99,7 @@ SECTIONS
. = __stack ; . = __stack ;
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -137,6 +137,7 @@ SECTIONS
. = __stack ; . = __stack ;
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -98,6 +98,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -95,6 +95,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -133,6 +133,7 @@ SECTIONS
*(.gnu.linkonce.b.*) *(.gnu.linkonce.b.*)
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;
} }

View File

@ -137,6 +137,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
end = .; end = .;
_end = .; _end = .;

View File

@ -144,6 +144,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
PROVIDE (end = .); PROVIDE (end = .);
_end = .; _end = .;

View File

@ -146,6 +146,7 @@ SECTIONS
*(COMMON) *(COMMON)
} }
. = ALIGN(4);
PROVIDE (end = .); PROVIDE (end = .);
_end = .; _end = .;