projects
/
centaur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Turn elfu_gScnSizeFile into a macro
[centaur.git]
/
src
/
model
/
reladd.c
diff --git
a/src/model/reladd.c
b/src/model/reladd.c
index 41d7cfba004a4a2bb146fbee058f772db8561dbc..549afcfe46c42013851016f7f46468cffda2dfc4 100644
(file)
--- a/
src/model/reladd.c
+++ b/
src/model/reladd.c
@@
-119,7
+119,7
@@
static ElfuScn* insertSection(ElfuElf *me, ElfuElf *mrel, ElfuScn *ms)
// TODO: Error handling
} else {
// TODO: Error handling
} else {
- injOffset = lastScn->shdr.sh_offset +
elfu_gScnSizeFile
(&lastScn->shdr);
+ injOffset = lastScn->shdr.sh_offset +
SCNFILESIZE
(&lastScn->shdr);
ELFU_INFO("Expanding at offset 0x%jx...\n",
injOffset);
ELFU_INFO("Expanding at offset 0x%jx...\n",
injOffset);
@@
-129,7
+129,7
@@
static ElfuScn* insertSection(ElfuElf *me, ElfuElf *mrel, ElfuScn *ms)
/* Recalculate injOffset in case we expanded a NOBITS section */
lastScn = elfu_mScnLastInSegment(me, injAnchor);
/* Recalculate injOffset in case we expanded a NOBITS section */
lastScn = elfu_mScnLastInSegment(me, injAnchor);
- injOffset = lastScn->shdr.sh_offset +
elfu_gScnSizeFile
(&lastScn->shdr);
+ injOffset = lastScn->shdr.sh_offset +
SCNFILESIZE
(&lastScn->shdr);
ELFU_INFO("Inserting %s at offset 0x%jx...\n",
elfu_mScnName(mrel, ms),
ELFU_INFO("Inserting %s at offset 0x%jx...\n",
elfu_mScnName(mrel, ms),