xcoff64 ld-scripttempl-aix.sc.patch
Tom Rix
trix@redhat.com
Mon Jan 29 11:40:00 GMT 2001
aix.sc : default text section offset to 0x10000000
default data section offset to 0x20000000
add .sv3264 and .sv64 pseudo sections
loader and debug sections use the currect section offset.
---------------------------------------------------------------------------
diff -rcp sources-original/src/ld/scripttempl/aix.sc
sources/src/ld/scripttempl/aix.sc
*** sources-original/src/ld/scripttempl/aix.sc Sat Jan 20 00:29:00 2001
--- sources/src/ld/scripttempl/aix.sc Mon Jan 22 15:08:43 2001
*************** ENTRY(__start)
*** 10,15 ****
--- 10,17 ----
SECTIONS
{
.pad 0 : { *(.pad) }
+
+ . = 0x10000000;
.text ${RELOCATING-0} : {
${RELOCATING+PROVIDE (_text = .);}
*(.text)
*************** SECTIONS
*** 22,32 ****
*(.tb)
${RELOCATING+PROVIDE (_etext = .);}
}
! .data 0 : {
${RELOCATING+PROVIDE (_data = .);}
*(.data)
*(.rw)
*(.sv)
*(.ua)
. = ALIGN(4);
${CONSTRUCTING+CONSTRUCTORS}
--- 24,37 ----
*(.tb)
${RELOCATING+PROVIDE (_etext = .);}
}
! . = 0x20000000;
! .data . : {
${RELOCATING+PROVIDE (_data = .);}
*(.data)
*(.rw)
*(.sv)
+ *(.sv64)
+ *(.sv3264)
*(.ua)
. = ALIGN(4);
${CONSTRUCTING+CONSTRUCTORS}
*************** SECTIONS
*** 45,54 ****
${RELOCATING+PROVIDE (_end = .);}
${RELOCATING+PROVIDE (end = .);}
}
! .loader 0 : {
*(.loader)
}
! .debug 0 : {
*(.debug)
}
}
--- 50,61 ----
${RELOCATING+PROVIDE (_end = .);}
${RELOCATING+PROVIDE (end = .);}
}
!
! .loader : {
*(.loader)
}
!
! .debug : {
*(.debug)
}
}
More information about the Binutils
mailing list