Added .fini section to the ld scripts.
Fixed a bug that asked ld to discard the .dtors section. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2450 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4f8cebc925
commit
81ff593b02
@ -32,11 +32,11 @@ SECTIONS
|
|||||||
.rel.plt : { *(.rel.plt) }
|
.rel.plt : { *(.rel.plt) }
|
||||||
.rela.plt : { *(.rela.plt) }
|
.rela.plt : { *(.rela.plt) }
|
||||||
.init : { *(.init) } =0x9090
|
.init : { *(.init) } =0x9090
|
||||||
|
.fini : { *(.fini) } =0x9090
|
||||||
.plt : { *(.plt) }
|
.plt : { *(.plt) }
|
||||||
|
|
||||||
/* text/read-only data */
|
/* text/read-only data */
|
||||||
.text : { *(.text .gnu.linkonce.t.*) }
|
.text : { *(.text .gnu.linkonce.t.*) }
|
||||||
|
|
||||||
.rodata : { *(.rodata) }
|
.rodata : { *(.rodata) }
|
||||||
|
|
||||||
/* writable data */
|
/* writable data */
|
||||||
@ -60,7 +60,6 @@ SECTIONS
|
|||||||
.got : { *(.got.plt) *(.got) }
|
.got : { *(.got.plt) *(.got) }
|
||||||
.dynamic : { *(.dynamic) }
|
.dynamic : { *(.dynamic) }
|
||||||
|
|
||||||
|
|
||||||
/* unintialized data (in same segment as writable data) */
|
/* unintialized data (in same segment as writable data) */
|
||||||
PROVIDE (__bss_start = .);
|
PROVIDE (__bss_start = .);
|
||||||
.bss : { *(.bss) }
|
.bss : { *(.bss) }
|
||||||
@ -69,5 +68,5 @@ SECTIONS
|
|||||||
PROVIDE (_end = .);
|
PROVIDE (_end = .);
|
||||||
|
|
||||||
/* Strip unnecessary stuff */
|
/* Strip unnecessary stuff */
|
||||||
/DISCARD/ : { *(.comment .note .eh_frame .dtors) }
|
/DISCARD/ : { *(.comment .note .eh_frame) }
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@ SECTIONS
|
|||||||
.rel.plt : { *(.rel.plt) }
|
.rel.plt : { *(.rel.plt) }
|
||||||
.rela.plt : { *(.rela.plt) }
|
.rela.plt : { *(.rela.plt) }
|
||||||
.init : { *(.init) } =0x9090
|
.init : { *(.init) } =0x9090
|
||||||
|
.fini : { *(.fini) } =0x9090
|
||||||
.plt : { *(.plt) }
|
.plt : { *(.plt) }
|
||||||
|
|
||||||
/* text/read-only data */
|
/* text/read-only data */
|
||||||
@ -69,5 +70,5 @@ SECTIONS
|
|||||||
PROVIDE (_end = .);
|
PROVIDE (_end = .);
|
||||||
|
|
||||||
/* Strip unnecessary stuff */
|
/* Strip unnecessary stuff */
|
||||||
/DISCARD/ : { *(.comment .note .eh_frame .dtors) }
|
/DISCARD/ : { *(.comment .note .eh_frame) }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user