This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".

The branch, master has been updated
       via  79dc2c282b655adb8d5075d9eb2519883042ccf8 (commit)
       via  e189f98fcf778031299378f193c52447af6e752a (commit)
      from  ef7cb0f8678ea5cf55aa210c09e8f27d262f42d9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 79dc2c282b655adb8d5075d9eb2519883042ccf8
Author: Waldemar Brodkorb <[email protected]>
Date:   Mon Aug 1 13:43:34 2016 +0200

    bump for release

commit e189f98fcf778031299378f193c52447af6e752a
Author: Cupertino Miranda <[email protected]>
Date:   Mon Aug 1 10:44:42 2016 +0300

    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 <[email protected]>
    Signed-off-by: Alexey Brodkin <[email protected]>
    Cc: Vlad Zakharov <[email protected]>
    Cc: Vineet Gupta <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 Rules.mak                     | 2 +-
 libc/sysdeps/linux/arc/crt1.S | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Rules.mak b/Rules.mak
index 6188d16..8d0e66a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -127,7 +127,7 @@ export RUNTIME_PREFIX DEVEL_PREFIX KERNEL_HEADERS 
MULTILIB_DIR
 # Now config hard core
 MAJOR_VERSION := 1
 MINOR_VERSION := 0
-SUBLEVEL      := 16
+SUBLEVEL      := 17
 EXTRAVERSION  :=
 VERSION       := $(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL)
 ABI_VERSION   := $(MAJOR_VERSION)
diff --git a/libc/sysdeps/linux/arc/crt1.S b/libc/sysdeps/linux/arc/crt1.S
index 178c5b4..ae863e7 100644
--- a/libc/sysdeps/linux/arc/crt1.S
+++ b/libc/sysdeps/linux/arc/crt1.S
@@ -42,9 +42,9 @@ __start:
        mov_s   r5, r0          ; rltd_fini
        add_s   r2, sp, 4       ; argv
 #ifdef L_Scrt1
-       add     r0, pcl, @main@pcl
-       add     r3, pcl, @_init@pcl
-       add     r4, pcl, @_fini@pcl
+       ld      r0, [pcl, @main@gotpc]
+       ld      r3, [pcl, @_init@gotpc]
+       ld      r4, [pcl, @_fini@gotpc]
 #else
        mov_s   r0, main
        mov_s   r3, _init


hooks/post-receive
-- 
uClibc-ng - small C library for embedded systems
_______________________________________________
devel mailing list
[email protected]
http://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

Reply via email to