Commit 6661a677 authored by Faraz Shahbazker's avatar Faraz Shahbazker Committed by Corinna Vinschen

Align _end symbol to at least 4 in all MIPS scripts

Left-over part of commit 84b2a020

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.
parent 3e530271
......@@ -182,6 +182,7 @@ SECTIONS
*(.gnu.linkonce.b.*)
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
}
......@@ -135,6 +135,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -135,6 +135,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -137,6 +137,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -143,6 +143,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
PROVIDE (end = .);
_end = .;
......
......@@ -144,6 +144,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
PROVIDE (end = .);
_end = .;
......
......@@ -145,6 +145,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
PROVIDE (end = .);
_end = .;
......
......@@ -95,6 +95,7 @@ SECTIONS
*(.gnu.linkonce.b.*)
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
}
......@@ -99,6 +99,7 @@ SECTIONS
. = __stack ;
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -137,6 +137,7 @@ SECTIONS
. = __stack ;
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -98,6 +98,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -95,6 +95,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -133,6 +133,7 @@ SECTIONS
*(.gnu.linkonce.b.*)
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
}
......@@ -137,6 +137,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
end = .;
_end = .;
......
......@@ -144,6 +144,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
PROVIDE (end = .);
_end = .;
......
......@@ -146,6 +146,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(4);
PROVIDE (end = .);
_end = .;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment