linux - How are the flags of ELF sections defined? -
using readelf -s
can obtain information sections of relocatable file, however, i'm puzzled meaning of flg. in elf.h linux kernel @ linux/elf.h:
/* sh_flags */ #define shf_write 0x1 #define shf_alloc 0x2 #define shf_execinstr 0x4 #define shf_rela_livepatch 0x00100000 #define shf_ro_after_init 0x00200000 #define shf_maskproc 0xf0000000
but got
key flags: w (write), (alloc), x (execute), m (merge), s (strings), l (large) (info), l (link order), g (group), t (tls), e (exclude), x (unknown) o (extra os processing required) o (os specific), p (processor specific)
so how other flags defined?
Comments
Post a Comment