[GLIBC][AARCH64]Rewrite elf_machine_load_address using _DYNAMIC symbol
Roland McGrath
roland@hack.frob.com
Tue Nov 8 21:28:00 GMT 2016
There is plenty more reliance on the compiler not doing the wrong things.
I don't see any new issue there.
The use of a linker script here also does not concern me. This only
affects building ld.so itself, so there is no issue about general linker
compatibility. We have plenty more use of fancy linker features and only a
few linkers are capable of building libc already.
I never said I was sure this technique works on all machines.
It certainly works on aarch64.
Show me the code you have in mind using _DYNAMIC. The scheme using a
linker-defined symbol with value 0 is the only one I'm aware of that
reduces to the minimal number of assembly instructions, with none of them
being a load.
More information about the Libc-alpha
mailing list