Be more verbose
[centaur.git] / src / model / reladd.c
index 782d245375de4064a65c42779249227ac62d49dd..41d7cfba004a4a2bb146fbee058f772db8561dbc 100644 (file)
@@ -98,6 +98,10 @@ static ElfuScn* insertSection(ElfuElf *me, ElfuElf *mrel, ElfuScn *ms)
           } else {
             injOffset = firstScn->shdr.sh_offset;
 
+            ELFU_INFO("Inserting %s at offset 0x%jx...\n",
+                      elfu_mScnName(mrel, ms),
+                      injOffset);
+
             /* Make space */
             elfu_mInsertSpaceBefore(me, injOffset, ms->shdr.sh_size);
 
@@ -117,6 +121,9 @@ static ElfuScn* insertSection(ElfuElf *me, ElfuElf *mrel, ElfuScn *ms)
           } else {
             injOffset = lastScn->shdr.sh_offset + elfu_gScnSizeFile(&lastScn->shdr);
 
+            ELFU_INFO("Expanding at offset 0x%jx...\n",
+                      injOffset);
+
             /* Expand NOBITS sections at injection site, if any. */
             elfu_mExpandNobits(me, injOffset);
 
@@ -124,6 +131,10 @@ static ElfuScn* insertSection(ElfuElf *me, ElfuElf *mrel, ElfuScn *ms)
             lastScn = elfu_mScnLastInSegment(me, injAnchor);
             injOffset = lastScn->shdr.sh_offset + elfu_gScnSizeFile(&lastScn->shdr);
 
+            ELFU_INFO("Inserting %s at offset 0x%jx...\n",
+                      elfu_mScnName(mrel, ms),
+                      injOffset);
+
             /* Make space */
             elfu_mInsertSpaceAfter(me, injOffset, ms->shdr.sh_size);