Skip to content

Commit 19c09ec

Browse files
authored
Merge pull request #809 from rickgaiser/for-ps2dev
iop: fix linkfile alignment
2 parents dd840cc + 0d82c59 commit 19c09ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

iop/startup/src/linkfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SECTIONS
2323
/* Read-only sections, merged into text segment: */
2424
. = 0x0400000; /* Can conditionally be changed to . = 0x5ffe0000 + SIZEOF_HEADERS; */
2525
.interp : { *(.interp) } /* Can conditionally be removed */
26-
.reginfo : { *(.reginfo) }
26+
.reginfo ALIGN(16) : SUBALIGN(16) { *(.reginfo) }
2727
.hash : { *(.hash) }
2828
.dynsym : { *(.dynsym) }
2929
.dynstr : { *(.dynstr) }
@@ -58,7 +58,7 @@ SECTIONS
5858
.rela.plt : { *(.rela.plt) }
5959
.init : { *(.init) } =0
6060
.plt : { *(.plt) }
61-
.text :
61+
.text ALIGN(16) : SUBALIGN(16)
6262
{
6363
PROVIDE(_ftext = . );
6464
*(.text)
@@ -71,12 +71,12 @@ SECTIONS
7171
PROVIDE(_etext = .);
7272
PROVIDE (etext = .);
7373
.fini : { *(.fini) } =0
74-
.rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) }
74+
.rodata ALIGN(16) : SUBALIGN(16) { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) }
7575
.rodata1 : { *(.rodata1) }
7676
/* Adjust the address for the data segment. We want to adjust up to
7777
the same address within the page on the next page up. */
7878
. = ALIGN(0x40000) + (. & (0x40000 - 1)); /* Can conditionally be changed to . = .; */
79-
.data :
79+
.data ALIGN(16) : SUBALIGN(16)
8080
{
8181
PROVIDE(_fdata = .);
8282
*(.data)
@@ -106,7 +106,7 @@ SECTIONS
106106
__bss_start = .;
107107
PROVIDE(_fbss = .);
108108
.sbss : { *(.sbss) *(.scommon) }
109-
.bss :
109+
.bss ALIGN(16) : SUBALIGN(16)
110110
{
111111
*(.dynbss)
112112
*(.bss)

0 commit comments

Comments
 (0)