Thread (1 message) 1 message, 1 author, 2021-10-25

Re: [PATCH v2] dl: Use "adr" assembler command to get proper load address on ARM

From: Lukasz Majewski <lukma@denx.de>
Date: 2021-10-25 14:04:51

Hi Szabolcs,
The 10/25/2021 12:53, Lukasz Majewski wrote:
quoted
Hi Florian,
  
quoted
* Lukasz Majewski:
  
quoted
Do we have any idea on how to move forward with this issue?    
Either fix the prelink tool not to prelink shared objects that do
not have a dependency on libc.so.6, or fix the dynamic loader to
work if prelinked on AArch64.  
Just for the correctness - both 64 and 32 bit ARMs are affected.  
last time i looked, prelinking did not support tlsdesc
correctly so it is unusable for aarch64.

does yocto/oe use prelinking on aarch64?
I think yes - the 
USER_CLASSES ?= "buildstats image-prelink"

is added by default to local.conf
quoted
  
quoted
I do not have a strong opinion.  
Thanks for your opinion. Let's wait for other community members
opinions.  
i think fixing the arm load address computation makes
sense (small extra cost of a relative reloc). i think
the c code proposal i made in the thread is nicer than
the old asm.

(i'm happy to make the same change on aarch64 too if
prelinking is used there, but i think that's broken.)
+1

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help