diff options
author | Chris Johns <chrisj@rtems.org> | 2012-12-08 09:07:30 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-12-08 09:07:30 +1100 |
commit | 4c10232ae7298504c124c33a8c0dc27c86dad5b5 (patch) | |
tree | f2745cad4ebf5cb07111191fe6f0cd8b7dd22cd5 /rld-elf-types.h | |
parent | c6add3b2f603f4cf9be8bfe4bb4c27ccf9c086fa (diff) |
Add support to demand load relocation records.
Support has been added to load relocation record on demand. The
relocation records are not read when the object file is first
opened and read. They are read only when being written to the
output file. This save loading lots of records into memory
from libraries to be thrown away.
The RAP format now supports writing out relocation records.
Diffstat (limited to 'rld-elf-types.h')
-rw-r--r-- | rld-elf-types.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/rld-elf-types.h b/rld-elf-types.h index a272587..c305976 100644 --- a/rld-elf-types.h +++ b/rld-elf-types.h @@ -36,20 +36,23 @@ namespace rld /** * Hide the types from libelf we use. */ - typedef ::GElf_Half elf_half; - typedef ::GElf_Word elf_word; - typedef ::GElf_Xword elf_xword; - typedef ::Elf_Type elf_type; - typedef ::GElf_Addr elf_addr; - typedef ::GElf_Off elf_off; - typedef ::GElf_Sym elf_sym; - typedef ::Elf_Kind elf_kind; - typedef ::Elf_Scn elf_scn; - typedef ::GElf_Ehdr elf_ehdr; - typedef ::GElf_Shdr elf_shdr; - typedef ::GElf_Phdr elf_phdr; - typedef ::Elf_Data elf_data; - typedef ::Elf elf; + typedef ::GElf_Half elf_half; + typedef ::GElf_Word elf_word; + typedef ::GElf_Xword elf_xword; + typedef ::GElf_Sxword elf_sxword; + typedef ::Elf_Type elf_type; + typedef ::GElf_Addr elf_addr; + typedef ::GElf_Off elf_off; + typedef ::GElf_Sym elf_sym; + typedef ::Elf_Kind elf_kind; + typedef ::Elf_Scn elf_scn; + typedef ::GElf_Ehdr elf_ehdr; + typedef ::GElf_Shdr elf_shdr; + typedef ::GElf_Phdr elf_phdr; + typedef ::Elf_Data elf_data; + typedef ::GElf_Rel elf_rel; + typedef ::GElf_Rela elf_rela; + typedef ::Elf elf; } } |