Skip to content

Commit b30e380

Browse files
author
Brent Cook
committed
Land rapid7#7398, fix linux x64 elf-so template with LD_PRELOAD
2 parents 705d150 + dcc77fd commit b30e380

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

data/templates/src/elf/dll/elf_dll_x64_template.s

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ shdr:
5050
dd 0 ; sh_link
5151
dd 0 ; sh_info
5252
dq 8 ; sh_addralign
53-
dq dynsz ; sh_entsize
53+
dq 7 ; sh_entsize
5454
shentsize equ $ - shdr
5555
dd 0 ; sh_name
5656
dd 3 ; sh_type = SHT_STRTAB
@@ -66,9 +66,6 @@ dynsection:
6666
; DT_INIT
6767
dq 0x0c
6868
dq _start
69-
; DT_HASH
70-
dq 0x04
71-
dq 0
7269
; DT_STRTAB
7370
dq 0x05
7471
dq strtab
@@ -77,7 +74,7 @@ dynsection:
7774
dq strtab
7875
; DT_STRSZ
7976
dq 0x0a
80-
dq strtabsz
77+
dq 0
8178
; DT_SYMENT
8279
dq 0x0b
8380
dq 0
-16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)