You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/add-symbol-file.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,12 +107,14 @@ mahaloz pointed out that GDB likes it when you pass in the ELF for the host mach
107
107
And it all seems to work. So for now I am pinning the ELF to be x86_64 + ELFCLASS64 until we encounter an actual issue.
108
108
109
109
110
-
## Bata's code is weird
110
+
## Bata's design decisions
111
111
112
112
He actually passes an address to `add-symbol-file`. I see no actual benefit to doing this.
113
113
114
114
Also he keeps .data and .bss but none of the symbols reference them.
115
115
116
+
Read his reasoning here: https://github.com/pwndbg/niche-elf/issues/5 . Using relative offsets and passing an `ADDR` allows him to reuse (i.e. not have to regenerate) the same ELF for different KASLR runs.
0 commit comments