[uClibc] Crash in dynamic loader

frederic.goddeeris at banksys.be frederic.goddeeris at banksys.be
Mon Jul 12 14:57:19 UTC 2004


In the meantime I have discovered that the problem is due to the fact that
the code of the loader is not writable. The _dl_mprotect is never called
because tpnt->dynamic_info[DT_TEXTREL] is 0. I commented this out (wild
guess :-> ) and it continues now ... I have tried with setting
FORCE_SHAREABLE_TEXT_SEGMENTS, but is does not improve things. What could be
wrong?

So, now the libraries are loaded. Relocation of ld-uClibc and libfloat
succeeds but during the relocation of libc there is again a segmentation
error...


Thanks,
Frederic

-----Original Message-----
From: GODDEERIS Frederic BKS-T&P 
Sent: Monday 12 July 2004 12:39
To: uclibc at uclibc.org
Subject: [uClibc] Crash in dynamic loader


Hi all,

I have built an environment for an ARM720 using builtroot, using snapshots.
Busybox is linked statically. When I start a dynamically linked executable I
get a Segmentation fault.  It crashes in the dynamic loader just after
"About to do library relocations" appears. The crash occurs the first time
PERFORM_BOOTSTRAP_RELOC is called where ELF32_R_TYPE(rpnt->r_info) is
R_ARM_PC24. The symbol is "_dl_linux_resolver".

Last week I tried with the non-snapshot version but it failed do build. I
believe this is a known issue.

Where do I go from here? What is the first thing I should check?

Thanks a lot,
Frederic Goddeeris


_______________________________________________
uClibc mailing list
uClibc at uclibc.org
http://uclibc.org/mailman/listinfo/uclibc


"The information contained in this e-mail and any attachment thereto is confidential and
may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled 
to hand over this message to the addressee(s), any use of the information contained 
herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to 
data corruption, interception and unauthorized amendment, for which we accept no liability."




More information about the uClibc mailing list