projects
/
slink.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
831ffa5
)
Make sure reloc is always set
master
author
Robert Pengelly
<robertapengelly@hotmail.com>
Tue, 4 Nov 2025 12:10:46 +0000
(12:10 +0000)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Tue, 4 Nov 2025 12:10:46 +0000
(12:10 +0000)
elf.c
patch
|
blob
|
history
diff --git
a/elf.c
b/elf.c
index c050e4c9381594c658ef383c7899e47f720917c3..57733559bdb450296804890409a8cac4999ddf34 100644
(file)
--- a/
elf.c
+++ b/
elf.c
@@
-51,7
+51,7
@@
static void translate_relocation (const char *filename, struct reloc_entry *relo
case R_386_NONE:
-
break
;
+
goto bad
;
case R_386_32:
@@
-118,7
+118,7
@@
static void translate_relocation64_addend (const char *filename, struct reloc_en
case R_AMD64_NONE:
-
break
;
+
goto bad
;
case R_AMD64_64:
@@
-1422,7
+1422,7
@@
void elf32_write (const char *filename) {
struct section *section;
uint16_t e_phnum = 0, e_shnum = 1;
-
+
uint64_t shstrtab_size, shstrtab_start_i = 0;
if (!(fp = fopen (filename, "wb"))) {