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:
Axel Dörfler 2003-01-13 11:28:36 +00:00
parent 4f8cebc925
commit 81ff593b02
2 changed files with 4 additions and 4 deletions

View File

@ -32,11 +32,11 @@ SECTIONS
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init : { *(.init) } =0x9090
.fini : { *(.fini) } =0x9090
.plt : { *(.plt) }
/* text/read-only data */
.text : { *(.text .gnu.linkonce.t.*) }
.rodata : { *(.rodata) }
/* writable data */
@ -60,7 +60,6 @@ SECTIONS
.got : { *(.got.plt) *(.got) }
.dynamic : { *(.dynamic) }
/* unintialized data (in same segment as writable data) */
PROVIDE (__bss_start = .);
.bss : { *(.bss) }
@ -69,5 +68,5 @@ SECTIONS
PROVIDE (_end = .);
/* Strip unnecessary stuff */
/DISCARD/ : { *(.comment .note .eh_frame .dtors) }
/DISCARD/ : { *(.comment .note .eh_frame) }
}

View File

@ -32,6 +32,7 @@ SECTIONS
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init : { *(.init) } =0x9090
.fini : { *(.fini) } =0x9090
.plt : { *(.plt) }
/* text/read-only data */
@ -69,5 +70,5 @@ SECTIONS
PROVIDE (_end = .);
/* Strip unnecessary stuff */
/DISCARD/ : { *(.comment .note .eh_frame .dtors) }
/DISCARD/ : { *(.comment .note .eh_frame) }
}