diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-25 10:33:12 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-25 10:33:12 -0700 |
commit | 4a211f679cd19207085b2e53c1c6572a47226fc1 (patch) | |
tree | 05be60a3fa9f1f86b753834910e5cb16599733f0 /com32/lib/com32.ld | |
parent | 14952a63ac017687efacf5d1f02de2b35e7e45f7 (diff) | |
download | syslinux-4a211f679cd19207085b2e53c1c6572a47226fc1.tar.gz |
com32r: allow absolute and relative symbols based on regex
Allow relocs.c to sort linker-assigned absolute symbols into true
absolute and relative symbols based on regular expressions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/com32.ld')
-rw-r--r-- | com32/lib/com32.ld | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/com32/lib/com32.ld b/com32/lib/com32.ld index 41e88da4..f615e82d 100644 --- a/com32/lib/com32.ld +++ b/com32/lib/com32.ld @@ -13,6 +13,7 @@ SECTIONS /* Read-only sections, merged into text segment: */ . = 0; PROVIDE (__executable_start = .); + PROVIDE (_stext = .); .init : { @@ -28,11 +29,12 @@ SECTIONS { KEEP (*(.fini)) } =0x90909090 - PROVIDE (__etext = .); PROVIDE (_etext = .); - PROVIDE (etext = .); + + __rodata_start = .; .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } .rodata1 : { *(.rodata1) } + __rodata_end = .; /* Ensure the __preinit_array_start label is properly aligned. We could instead move the label definition inside the section, but @@ -105,7 +107,6 @@ SECTIONS } . = ALIGN(4); _end = .; - PROVIDE (end = .); /* Stabs debugging sections. */ .stab 0 : { *(.stab) } |