Commit 6547b720 by Michael Meissner

Work with new linker

From-SVN: r11071
parent bd28bf5a
...@@ -44,11 +44,8 @@ ...@@ -44,11 +44,8 @@
.type __GOT_START__,@object .type __GOT_START__,@object
.weak _GLOBAL_OFFSET_TABLE_ .weak _GLOBAL_OFFSET_TABLE_
.type _GLOBAL_OFFSET_TABLE_,@object .type _GLOBAL_OFFSET_TABLE_,@object
.weak _SDA_BASE_
.type _SDA_BASE_,@object
__GOT_START__: __GOT_START__:
_GLOBAL_OFFSET_TABLE_: _GLOBAL_OFFSET_TABLE_:
_SDA_BASE_:
.section ".got1","aw" .section ".got1","aw"
.globl __GOT1_START__ .globl __GOT1_START__
...@@ -78,7 +75,10 @@ __DTOR_LIST__: ...@@ -78,7 +75,10 @@ __DTOR_LIST__:
.section ".sdata","aw" .section ".sdata","aw"
.globl __SDATA_START__ .globl __SDATA_START__
.type __SDATA_START__,@object .type __SDATA_START__,@object
.weak _SDA_BASE_
.type _SDA_BASE_,@object
__SDATA_START__: __SDATA_START__:
_SDA_BASE_:
.section ".sbss","aw",@nobits .section ".sbss","aw",@nobits
.globl __SBSS_START__ .globl __SBSS_START__
...@@ -86,12 +86,12 @@ __SDATA_START__: ...@@ -86,12 +86,12 @@ __SDATA_START__:
__SBSS_START__: __SBSS_START__:
.section ".sdata2","aw" .section ".sdata2","aw"
.globl _SDA2_BASE_ .weak _SDA2_BASE_
.type _SDA2_BASE_,@object .type _SDA2_BASE_,@object
.globl __SDATA2_START__ .globl __SDATA2_START__
.type __SDATA2_START__,@object .type __SDATA2_START__,@object
__SDATA2_START__: __SDATA2_START__:
_SDA2_BASE_ = .+32768 _SDA2_BASE_:
.section ".sbss2","aw" .section ".sbss2","aw"
.globl __SBSS2_START__ .globl __SBSS2_START__
......
...@@ -69,13 +69,6 @@ __CTOR_END__: ...@@ -69,13 +69,6 @@ __CTOR_END__:
.type __DTOR_END__,@object .type __DTOR_END__,@object
__DTOR_END__: __DTOR_END__:
# Put a blrl instruction in the special .got.blrl section, which
# the GNU linker puts at _GLOBAL_OFFSET_TABLE-4, so that a program
# can find the _GLOBAL_OFFSET_TABLE_ address in a painless fashion.
.section ".got.blrl","awx"
blrl
.section ".sdata","aw" .section ".sdata","aw"
.globl __SDATA_END__ .globl __SDATA_END__
.type __SDATA_END__,@object .type __SDATA_END__,@object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment