From 71738cafe6723a65a53180d8290885ba1fe87dce Mon Sep 17 00:00:00 2001 From: Shankar Easwaran Date: Wed, 20 Mar 2013 23:39:43 +0000 Subject: [PATCH] [ELF][Hexagon][test] check .got.plt order llvm-svn: 177604 --- lld/test/elf/Hexagon/Inputs/got-plt-order.c | 6 ++++++ lld/test/elf/Hexagon/Inputs/got-plt-order.o | Bin 0 -> 964 bytes lld/test/elf/Hexagon/hexagon-got-plt-order.test | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 lld/test/elf/Hexagon/Inputs/got-plt-order.c create mode 100644 lld/test/elf/Hexagon/Inputs/got-plt-order.o create mode 100644 lld/test/elf/Hexagon/hexagon-got-plt-order.test diff --git a/lld/test/elf/Hexagon/Inputs/got-plt-order.c b/lld/test/elf/Hexagon/Inputs/got-plt-order.c new file mode 100644 index 0000000..621f670 --- /dev/null +++ b/lld/test/elf/Hexagon/Inputs/got-plt-order.c @@ -0,0 +1,6 @@ +int c = 10; +int fn() { c = 20; return 0; } + +int fn1() { + return fn(); +} diff --git a/lld/test/elf/Hexagon/Inputs/got-plt-order.o b/lld/test/elf/Hexagon/Inputs/got-plt-order.o new file mode 100644 index 0000000000000000000000000000000000000000..e97678b739bd3b8d6691b475bb9b50af4b18c3ff GIT binary patch literal 964 zcmah|%Syvg5S>`xy6{m%5F`tc3N~1%SVW|?v_%Mr=tA6-TH}k>N_vHM<<_kmsf&Vw zACk{-=`Z*NdQNgLMi)9TnKLuz&Ye3$?n-XivMe!T$*X*OBJW5fpxKa+k_j0VE9gI4 zZ~Yg^i_8bRSF{rJ9+E+RO9JWSg8su|u=pt8!9OM*56|OMDHb>F)IsakuX}#i-oM=~ z+U}+D>~&`?oy}~l*jXp*tcf`7Zd27xV3i-)3xj;GQFD~nQR1A|R85?db{o71w?n7i zYBs%VWp4e~+FtWELu-=NsG|W+_p{6%Ld4g65w2(ug z9SBkM>A?vAxp(%%_p%|*DPHdgj_CoZunz5SG50V&C?B8kd_soeF6x^tM&ZP-s)-*R zuphGx!ygIXO^=yrFlM8aq+n-IZ%+F(d>8k~9Cy#WoVQf^rlHa;|J3uHy42Qi^_sZpi(qZ+mu;Z4hNMynpP3fP6H44CHW+e^~l7vXCgcnCWmBR6 literal 0 HcmV?d00001 diff --git a/lld/test/elf/Hexagon/hexagon-got-plt-order.test b/lld/test/elf/Hexagon/hexagon-got-plt-order.test new file mode 100644 index 0000000..366d67a --- /dev/null +++ b/lld/test/elf/Hexagon/hexagon-got-plt-order.test @@ -0,0 +1,6 @@ +RUN: lld -core -target hexagon %p/Inputs/got-plt-order.o \ +RUN: -output=%t -noinhibit-exec -output-type=shared +RUN: llvm-objdump -section-headers %t | FileCheck %s + +CHECK: .got +CHECK-NEXT: .got.plt -- 2.7.4