Hi,
While working on FDPIC support for ARM in uclibc-ng, I've noticed that
the write() function if defined as a strong global symbol, while the
__GI_write alias is weak.
0034 wF .text 005c .hidden __GI_write
0034 g F .text 005c write
my pre-processed write.i
On Sun, 24 Jun 2018 at 18:37, Waldemar Brodkorb wrote:
>
> Hi Christophe,
> Christophe Lyon wrote,
>
> > Hi,
> >
> > While working on FDPIC support for ARM in uclibc-ng, I've noticed that
> > the write() function if defined as a strong global symbol, wh
On Tue, 31 Jul 2018 at 14:58, Waldemar Brodkorb wrote:
> Hi,
>
> > Am 30.07.2018 um 15:50 schrieb Christophe Lyon <
> christophe.l...@linaro.org>:
> >
> >> On Wed, 25 Jul 2018 at 07:20, Waldemar Brodkorb
> wrote:
> >>
> >> Hi
On 04/07/2018 17:55, Christophe Lyon wrote:
Add FDPIC dynamic relocations support, similar to what other FDPIC
targets do.
Here is version 2 of this patch.
>From 01c34002c0033f7027b0505a3ffb7e2c0ebf423a Mon Sep 17 00:00:00 2001
From: Christophe Lyon
Date: Fri, 18 Jan 2013
On 04/07/2018 17:55, Christophe Lyon wrote:
Add support for R_ARM_FUNCDESC_VALUE and implement _dl_linux_resolver
for FDPIC on ARM.
Here is v2 of this patch.
>From 060a6ac2e81f9aa739d2eaf31b151f9e7e7d468f Mon Sep 17 00:00:00 2001
From: Christophe Lyon
Date: Thu, 28 Mar 2013 10:46:55 +0
On Wed, 18 Jul 2018 at 18:37, Waldemar Brodkorb wrote:
>
> Hi,
> Christophe Lyon wrote,
>
> > On Wed, 18 Jul 2018 at 09:37, Waldemar Brodkorb wrote:
> > >
> > > Hi Christophe,
> > > Waldemar Brodkorb wrote,
> > >
> > > > Hi Chr
s to be squashed with patch 4/32 "rtld: Add FDPIC
code for arm"
What the practice on this list? Shall I send v2 of patch 4/32 asap, on
rather wait for feedback on other patches and then send a v2 of the
whole series?
Thanks,
Christophe
> best regards
>
> Waldemar
>
> &g
On Thu, 19 Jul 2018 at 14:33, Waldemar Brodkorb
wrote:
>
> Hi,
> Christophe Lyon wrote,
>
> > On Wed, 18 Jul 2018 at 18:37, Waldemar Brodkorb wrote:
> > >
> > > Hi,
> > > Christophe Lyon wrote,
> > >
> > > > On Wed, 18 Jul 2018 a
On Wed, 18 Jul 2018 at 09:37, Waldemar Brodkorb wrote:
>
> Hi Christophe,
> Waldemar Brodkorb wrote,
>
> > Hi Christophe,
> >
> > i am doing a large testrun for the global changes and hopefully push on
> > monday or at least have some news. i am afk atm with just little access to
> > a
On Thu, 5 Jul 2018 at 10:59, Thomas Petazzoni
wrote:
>
> Hello,
>
> On Thu, 5 Jul 2018 10:55:26 +0200, Christophe Lyon wrote:
>
> > > /tmp/cceTVltl.s: Assembler messages:
> > > /tmp/cceTVltl.s:14: Error: selected processor does not support ARM opcodes
> &g
* extra/Configs/Config.in.arch: Add TARGET_arm to the target list
for UCLIBC_FORMAT_FDPIC_ELF.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
index b51ed81..91b6394 100644
--- a/extra/Configs
Without MMU, we cannot mark memory regions as read-only.
* ldso/ldso/dl-elf.c (_dl_protect_relro): Do nothing if
__ARCH_USE_MMU__ is defined.
Signed-off-by: Christophe Lyon
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index d264e6a..1768b5b 100644
--- a/ldso
-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/include/link.h b/include/link.h
index 711777b..ef4a016 100644
--- a/include/link.h
+++ b/include/link.h
@@ -79,7 +79,7 @@ extern struct r_debug _r_debug;
*/
extern ElfW(Dyn) _DYNAMIC[];
-#if defined(__FRV_FDPIC__) || defined
ps://git.qemu.org/?p=qemu.git;a=commit;h=e8fa72957419c11984608062c7dcb204a6003a06
[6] https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01439.html
Christophe Lyon (32):
[ARM][FDPIC] Allow to select FDPIC ELF for arm architecture
[FDPIC] rtld: Do not protect RELRO segments when we don't use an MMU.
-by: Christophe Lyon
diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c
index 2900517..1379795 100644
--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -328,8 +328,10 @@ change_stack_perm (struct pthread *pd
#else
# error "Define e
rtld must call _dl_find_hash() with ELF_RTYPE_CLASS_DLSYM since we
want a function descriptor.
* ldso/ldso/ldso.c (_dl_get_ready_to_run): Support __FDPIC__.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 06b0ac8
(__libc_pthread_init): Handle __ARCH_USE_MMU__.
* libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
* libpthread/nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libpthread/nptl
* libpthread/nptl/sysdeps/generic/libc-tls.c (__libc_setup_tls):
Handle __FDPIC__.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libpthread/nptl/sysdeps/generic/libc-tls.c
b/libpthread/nptl/sysdeps/generic/libc-tls.c
index 5f89c91..a6df4cd 100644
null.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libc/misc/internals/__uClibc_main.c
b/libc/misc/internals/__uClibc_main.c
index d8286f2..849bca8 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -544,7 +544,7 @@ void __uClibc_
* libm/s_isnan.c: Add isnan weak alias.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libm/s_isnan.c b/libm/s_isnan.c
index 1bc49cb..1aabb74 100644
--- a/libm/s_isnan.c
+++ b/libm/s_isnan.c
@@ -26,4 +26,5 @@ int __isnan(double x)
hx = 0x7ff0 - hx
R_ARM_NONE contains no data, so avoid dereferencing it.
* ldso/ldso/arm/elfinterp.c (_dl_do_reloc): Handle R_ARM_NONE
relocation
(_dl_do_reloc_lazy): Likewise.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/ldso/ldso/arm/elfinterp.c b/ldso
Match glibc behavior.
* libc/stdlib/stdlib.c (mbtowc): Fix end of string behavior.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c
index 075e6e5..f593663 100644
--- a/libc/stdlib/stdlib.c
+++ b/libc/stdlib/stdlib.c
(__DL_PREAD): Handle __NR_pread64.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 5ba8c87..9d80c6a 100644
--- a/ldso/include/dl-syscall.h
+++ b/ldso/include/dl-syscall.h
@@ -159,14 +159,25 @@ static __always_inline
Implements __gnu_Unwind_Find_got(), which is called from libgcc while
unwinding.
* libc/sysdeps/linux/arm/Makefile.arch (CSRC): Add find._got.c.
* libc/sysdeps/linux/arm/find_got.c: New file.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libc/sysdeps
* ldso/ldso/dl-elf.c (_dl_load_elf_shared_library): Fix
l_tls_initimage computation.
* ldso/ldso/ldso.c (_dl_get_ready_to_run): Likewise.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index 1768b5b
* libc/misc/internals/__uClibc_main.c (funcdesc_value): New.
(fdpic_init_array_jump): New.
(__uClibc_fini): Support __FDPIC__.
(__uClibc_main): Likewise.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libc/misc/internals/__uClibc_main.c
Guêné
Signed-off-by: Christophe Lyon
diff --git a/ldso/ldso/arm/elfinterp.c b/ldso/ldso/arm/elfinterp.c
index 1435c2c..3bcd675 100644
--- a/ldso/ldso/arm/elfinterp.c
+++ b/ldso/ldso/arm/elfinterp.c
@@ -34,13 +34,69 @@
extern int _dl_linux_resolve(void);
-unsigned long _dl_linux_resolver(struct
/libgcc.a(unwind-arm.o): in
function `unwind_phase2_forced':
/libgcc/unwind-arm-common.inc:511: undefined reference to `memcpy'
* ldso/ldso/Makefile.in (CFLAGS-rtld): Always use
-fno-unwind-tables -fno-asynchronous-unwind-tables on arm
Signed-off-by: Christophe Lyon
diff --git a/ldso
Change clone.S so that in FDPIC case we take into account the fact
that we are given a function descriptor.
* libc/sysdeps/linux/arm/clone.S (__clone): Support __FDPIC__.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libc/sysdeps/linux/arm/clone.S b/libc
-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libpthread/nptl/linux_fsinfo.h b/libpthread/nptl/linux_fsinfo.h
index 8537581..4abe792 100644
--- a/libpthread/nptl/linux_fsinfo.h
+++ b/libpthread/nptl/linux_fsinfo.h
@@ -126,7 +126,10 @@
#define XENIX_SUPER_MAGIC 0x012ff7b4
* libc/stdlib/system.c (FORK): Map to vfork if __ARCH_USE_MMU__
is defined.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c
index 771c30e..4c010bb 100644
--- a/libc/stdlib/system.c
+++ b/libc/stdlib/system.c
* libpthread/nptl/Makefile.in (libpthread-routines-): Remove
pthread_mutex_getprioceiling.c and pthread_mutex_setprioceiling.c.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libpthread/nptl/Makefile.in b/libpthread/nptl/Makefile.in
index a2f30ac
start_thread() uses it, but it is not supported on MMU-less systems.
* libpthread/nptl/pthread_create.c (start_thread): Call madvise
only if __ARCH_USE_MMU__ is defined.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/libpthread/nptl/pthread_create.c b
On Wed, 24 Oct 2018 at 14:39, Waldemar Brodkorb wrote:
>
> Hi,
>
> are the gcc patches upstream now?
>
They are still under discussion with the maintainers.
> Christophe Lyon wrote,
>
> > Hi,
> >
> > This patch enables to compile uClibc-ng in FDPIC mode
encoding, adjust
for Thumb.
Signed-off-by: Mickaël Guêné
Signed-off-by: Christophe Lyon
diff --git a/ldso/ldso/arm/aeabi_read_tp.S b/ldso/ldso/arm/aeabi_read_tp.S
index 77e0d6e..5ab5125 100644
--- a/ldso/ldso/arm/aeabi_read_tp.S
+++ b/ldso/ldso/arm/aeabi_read_tp.S
@@ -53,9 +53,23 @@
#else
t am --skip" instead.
> To restore the original branch and stop patching, run "git am
> --abort".
>
> best regards
> Waldemar
>
> > On Wed, 24 Oct 2018 at 14:39, Waldemar Brodkorb wrote:
> > >
> > > Hi,
> > >
> > >
On Wed, 20 Feb 2019 at 09:20, Alexey Neyman wrote:
>
> Hi,
>
> I've noticed that uClibc-ng now allows the FDPIC ELF for ARM: one of the
> crosstool-NG samples that configures a toolchain for ARM with no MMU now
> defaults to FDPIC rather than flat format. The problem is, though, it
> then fails -
Hi,
My recent attempt at submitting the GCC patch series to add FDPIC
support for arm triggered a discussion about -static-pie support [1],
which continued on IRC.
The patch currently supports -static but the resulting binary still
needs the dynamic linker to prepare the parameters for
38 matches
Mail list logo