Page MenuHomeFreeBSD

D58522.diff
No OneTemporary

D58522.diff

diff --git a/libexec/rtld-elf/map_object.c b/libexec/rtld-elf/map_object.c
--- a/libexec/rtld-elf/map_object.c
+++ b/libexec/rtld-elf/map_object.c
@@ -94,7 +94,6 @@
Elf_Addr note_end;
char *note_map;
size_t note_map_len;
- Elf_Addr text_end;
hdr = get_elf_header(fd, path, sb, &phdr);
if (hdr == NULL)
@@ -115,7 +114,6 @@
note_map_len = 0;
segs = xcalloc(hdr->e_phnum, sizeof(segs[0]));
stack_flags = PF_X | PF_R | PF_W;
- text_end = 0;
while (phdr < phlimit) {
switch (phdr->p_type) {
case PT_INTERP:
@@ -130,11 +128,6 @@
path, nsegs);
goto error;
}
- if ((segs[nsegs]->p_flags & PF_X) == PF_X) {
- text_end = MAX(text_end,
- rtld_round_page(segs[nsegs]->p_vaddr +
- segs[nsegs]->p_memsz));
- }
break;
case PT_PHDR:

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 4, 7:13 AM (11 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35714519
Default Alt Text
D58522.diff (792 B)

Event Timeline