aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2010-05-02 00:59:04 +0000
committerNicolas Thill <nico@openwrt.org>2010-05-02 00:59:04 +0000
commit734e6e5fd394cf923081b63a632753c97a3f3a5f (patch)
tree4259fcadc2d40d82408b286d7b1e8b72c686dc80 /target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch
parent395a1f4e0c36a4c1903688a56178f2543708ea94 (diff)
downloadupstream-734e6e5fd394cf923081b63a632753c97a3f3a5f.tar.gz
upstream-734e6e5fd394cf923081b63a632753c97a3f3a5f.tar.bz2
upstream-734e6e5fd394cf923081b63a632753c97a3f3a5f.zip
target/uml: add patches for 2.6.32
SVN-Revision: 21290
Diffstat (limited to 'target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch')
-rw-r--r--target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch b/target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch
new file mode 100644
index 0000000000..2adfe03621
--- /dev/null
+++ b/target/linux/uml/patches-2.6.32/006-uml_libc_link_errors.patch
@@ -0,0 +1,50 @@
+--- a/arch/um/kernel/dyn.lds.S
++++ b/arch/um/kernel/dyn.lds.S
+@@ -50,8 +50,21 @@ SECTIONS
+ .rela.got : { *(.rela.got) }
+ .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
+ .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
+- .rel.plt : { *(.rel.plt) }
+- .rela.plt : { *(.rela.plt) }
++ /* Deal with multilib libc */
++ .rel.plt :
++ {
++ *(.rel.plt)
++ PROVIDE_HIDDEN (__rel_iplt_start = .);
++ *(.rel.iplt)
++ PROVIDE_HIDDEN (__rel_iplt_end = .);
++ }
++ .rela.plt :
++ {
++ *(.rela.plt)
++ PROVIDE_HIDDEN (__rela_iplt_start = .);
++ *(.rela.iplt)
++ PROVIDE_HIDDEN (__rela_iplt_end = .);
++ }
+ .init : {
+ KEEP (*(.init))
+ } =0x90909090
+--- a/arch/um/kernel/uml.lds.S
++++ b/arch/um/kernel/uml.lds.S
+@@ -35,6 +35,21 @@ SECTIONS
+ *(.gnu.warning)
+ *(.gnu.linkonce.t*)
+ }
++ /* Deal with multilib libc */
++ .rel.plt :
++ {
++ *(.rel.plt)
++ PROVIDE_HIDDEN (__rel_iplt_start = .);
++ *(.rel.iplt)
++ PROVIDE_HIDDEN (__rel_iplt_end = .);
++ }
++ .rela.plt :
++ {
++ *(.rela.plt)
++ PROVIDE_HIDDEN (__rela_iplt_start = .);
++ *(.rela.iplt)
++ PROVIDE_HIDDEN (__rela_iplt_end = .);
++ }
+
+ . = ALIGN(PAGE_SIZE);
+ .syscall_stub : {