diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-09-09 12:04:57 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-09-09 12:04:57 -0500 |
commit | b4f1ab54b36f7dc273b9a80081c019f7d6618715 (patch) | |
tree | b92783ceee76262fce9057c4e7537c8390a9c603 /src/module.ld | |
parent | fbedff5e909777a1d646947bd4f9beca6ddf7024 (diff) | |
download | talos-hostboot-b4f1ab54b36f7dc273b9a80081c019f7d6618715.tar.gz talos-hostboot-b4f1ab54b36f7dc273b9a80081c019f7d6618715.zip |
Support modules.
Diffstat (limited to 'src/module.ld')
-rw-r--r-- | src/module.ld | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/module.ld b/src/module.ld new file mode 100644 index 000000000..f94f97218 --- /dev/null +++ b/src/module.ld @@ -0,0 +1,35 @@ +SECTIONS +{ + .text : { + *(.text) + *(.text._*) + *(.rodata) + *(.rodata.*) + *(.glink) + + . = ALIGN(0x8); + ctor_start_address = .; + *(.ctors) + ctor_end_address = .; + } + + .data ALIGN(0x1000): { + *(.data) + *(.data.*) + *(.branch_lt) + *(.toc) + *(.opd) + *(.got) + *(.plt) + *(.bss) + *(.bss.*) + } + + .rela : { + *(.rela.*) + } + + /DISCARD/ : { + *(.dtors) + } +} |