This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: aarch64: remove literal pools in start.S


On 04/09/17 14:18, wangboshi wrote:
> I want to set code as executable and non-readable (known as XOM) against some attacks. But literal pools in
> code section make it impossible.  Some compiler options, like execute_only (armcc) , mpure-code(gcc & clang)
> and mexecute-only(clang), can disable literal pools. But they can't disable literal pools in
> sysdeps/aarch64/start.S, so I want to remove literal pools.
> 
> Would it make some compatible problems?
> 

it should not be a problem i think
(just put the literals in rodata and use adrp)
send a patch to libc-alpha or open a ticket about it.

it won't work with -mcmodel=large static linked
executables (when .text can be larger than 4G)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]