arc: crt1: Fix to PIE
commite189f98fcf778031299378f193c52447af6e752a
authorCupertino Miranda <cmiranda@synopsys.com>
Mon, 1 Aug 2016 07:44:42 +0000 (1 10:44 +0300)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Mon, 1 Aug 2016 11:43:08 +0000 (1 13:43 +0200)
tree2304154a6888bc833c1ce11a1023657d4ff70a41
parentef7cb0f8678ea5cf55aa210c09e8f27d262f42d9
arc: crt1: Fix to PIE

crt1.S needed to use a got relative reference.

Libraries like pthreads define a _init and unless it is GOT, the
linker will fail because it will try to create a dynamic reloc on
.text section, more precisely on __start.

Signed-off-by: Cupertino Miranda <cmiranda@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vlad Zakharov <vzakhar@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
libc/sysdeps/linux/arc/crt1.S