Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Shahbazker <fshahbazker at wavecomp dot com>2019-05-02 19:16:44 +0300
committerJeff Johnston <jjohnstn@redhat.com>2019-05-15 22:30:25 +0300
commita9a0d219a417a8079b878ce967f72997789e328a (patch)
tree1198f15a8456ad2f6cd5ec6638129e796860bdc2 /libgloss/mips/array.ld
parente91bc190ff685bca726024da353f0921660bc863 (diff)
Make .data section placement coincide with _fdata symbol
The _fdata symbol in MIPS linker scripts is aligned to a 16-byte boundary. The ALIGN function does not implicitly update current location counter. If sections positioned after the assignment do not have the same natural alignment as the ALIGN function then the start of the section group will not coincide with the value of the symbol. Given the linker command sequence: symbol = ALIGN (NN); (.section*) where the idiom implies a desire to mark the beginning of .section with symbol, there must be an assignment to the location counter between the assignment to symbol and the .section pattern. libgloss/ * mips/array.ld: Update the location counter to match _fdata. * mips/cfe.ld: Likewise. * mips/ddb-kseg0.ld: Likewise. * mips/ddb.ld: Likewise. * mips/dve.ld: Likewise. * mips/idt.ld: Likewise. * mips/idt32.ld: Likewise. * mips/idt64.ld: Likewise. * mips/idtecoff.ld: Likewise. * mips/jmr3904app-java.ld: Likewise. * mips/jmr3904app.ld: Likewise. * mips/jmr3904dram-java.ld: Likewise. * mips/jmr3904dram.ld: Likewise. * mips/lsi.ld: Likewise. * mips/mti32.ld: Likewise. * mips/mti64.ld: Likewise. * mips/mti64_64.ld: Likewise. * mips/mti64_n32.ld: Likewise. * mips/nullmon.ld: Likewise. * mips/pmon.ld: Likewise. * mips/sde32.ld: Likewise. * mips/sde64.ld: Likewise.
Diffstat (limited to 'libgloss/mips/array.ld')
-rw-r--r--libgloss/mips/array.ld1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgloss/mips/array.ld b/libgloss/mips/array.ld
index 2bc49c71b..0492ae550 100644
--- a/libgloss/mips/array.ld
+++ b/libgloss/mips/array.ld
@@ -148,6 +148,7 @@ SECTIONS
*(.gnu.linkonce.r.*)
}
_fdata = ALIGN(16);
+ . = _fdata;
.data : {
*(.data)
*(.data.*)