Changeset a131536d in mainline for uspace/lib/c/arch/sparc64/src/rtld/reloc.c
- Timestamp:
- 2019-01-20T00:55:57Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eefdd7c
- Parents:
- b71ec66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/sparc64/src/rtld/reloc.c
rb71ec66 ra131536d 90 90 elf_symbol_t *sym_def; 91 91 module_t *dest; 92 uint32_t *plt; 92 93 93 94 DPRINTF("parse relocation table\n"); … … 96 97 rt_entries = rt_size / sizeof(elf_rela_t); 97 98 str_tab = m->dyn.str_tab; 99 100 plt = (uint32_t *)m->dyn.plt_got; 98 101 99 102 DPRINTF("rel table address: 0x%zx, entries: %zd\n", (uintptr_t)rt, rt_entries); … … 218 221 * r_ptr points to the PLT entry, sym_addr contains 219 222 * address of the symbol. 223 * 224 * XXX This only works for the first 32768 entries. 225 * If there are more, the layout is more complex. 220 226 */ 227 assert((uint32_t *)r_ptr - plt < 32768 * 8); 221 228 fill_plt_entry_generic((uint32_t *)r_ptr, sym_addr); 222 229 smc_coherence(r_ptr, 32);
Note:
See TracChangeset
for help on using the changeset viewer.