summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-08 05:26:20 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-08 05:26:20 +0000
commit63b525301215877c698ae434c67e13a3b99e9b2f (patch)
tree29860bc5c4f5761e71cc45e5fb0c27f51382d389
parent935404384b6c3c04ed1c06011bfb45c4b06741c7 (diff)
add some more useful debug output
-rw-r--r--ldso/ldso/dl-startup.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/ldso/ldso/dl-startup.c b/ldso/ldso/dl-startup.c
index 8af7963fb..f1ad3e4a5 100644
--- a/ldso/ldso/dl-startup.c
+++ b/ldso/ldso/dl-startup.c
@@ -239,10 +239,10 @@ static void * __attribute_used__ _dl_start(unsigned long args)
unsigned long rel_addr, rel_size;
ElfW(Word) relative_count = tpnt->dynamic_info[DT_RELCONT_IDX];
- rel_addr = (indx ? tpnt->dynamic_info[DT_JMPREL] : tpnt->
- dynamic_info[DT_RELOC_TABLE_ADDR]);
- rel_size = (indx ? tpnt->dynamic_info[DT_PLTRELSZ] : tpnt->
- dynamic_info[DT_RELOC_TABLE_SIZE]);
+ rel_addr = (indx ? tpnt->dynamic_info[DT_JMPREL] :
+ tpnt->dynamic_info[DT_RELOC_TABLE_ADDR]);
+ rel_size = (indx ? tpnt->dynamic_info[DT_PLTRELSZ] :
+ tpnt->dynamic_info[DT_RELOC_TABLE_SIZE]);
if (!rel_addr)
continue;
@@ -275,7 +275,8 @@ static void * __attribute_used__ _dl_start(unsigned long args)
SEND_STDERR_DEBUG("relocating symbol: ");
SEND_STDERR_DEBUG(strtab + sym->st_name);
SEND_STDERR_DEBUG("\n");
- }
+ } else
+ SEND_STDERR_DEBUG("relocating unknown symbol\n");
/* Use this machine-specific macro to perform the actual relocation. */
PERFORM_BOOTSTRAP_RELOC(rpnt, reloc_addr, symbol_addr, load_addr, sym);
}
@@ -298,7 +299,10 @@ static void * __attribute_used__ _dl_start(unsigned long args)
__rtld_stack_end = (void *)args; /* Needs to be after ld.so self relocation */
if (*((long *)__rtld_stack_end) != argc) {
- SEND_STDERR_DEBUG("__rtld_stack_end doesn't point to argc!");
+ SEND_STDERR_DEBUG("__rtld_stack_end=");
+ SEND_ADDRESS_STDERR_DEBUG(__rtld_stack_end, 0);
+ SEND_STDERR_DEBUG(" doesn't point to argc=");
+ SEND_ADDRESS_STDERR_DEBUG(&argc, 1);
}
_dl_get_ready_to_run(tpnt, load_addr, auxvt, envp, argv);