tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

missing ELF-related constants

i just switched bionic (the Android C library) over to the NetBSD <sys/exec_elf.h> from the existing mishmash of OpenBSD files and Linux kernel header files.

the NetBSD headers appear to be a superset, but they're still missing some constants that are in the specification...

a couple of architecture-independent constants are missing from exec_elf.h: DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ (see figure 5-10 of

three MIPS-specific constants are missing from elf_machdep.h: R_MIPS_JUMP_SLOT, DT_MIPS_PLTGOT, DT_MIPS_RWPLT (see

these constants can all be found in the (BSD licensed) bionic/linker/linker.h file:

#define R_MIPS_JUMP_SLOT       127

#define DT_MIPS_PLTGOT         0x70000032
#define DT_MIPS_RWPLT          0x70000034

#define DT_PREINIT_ARRAY   32



Home | Main Index | Thread Index | Old Index