struct elf_resolv has to be compatible with struct link_map or gdb will
authorpefo <pefo@openbsd.org>
Mon, 14 Apr 1997 08:09:46 +0000 (08:09 +0000)
committerpefo <pefo@openbsd.org>
Mon, 14 Apr 1997 08:09:46 +0000 (08:09 +0000)
not be able to pick up loaded shared lib info.

gnu/libexec/ld.so/ld.so/hash.h

index fea5940..9f263cd 100644 (file)
@@ -13,12 +13,12 @@ struct elf_resolve{
   /* These entries must be in this order to be compatible with the interface used
      by gdb to obtain the list of symbols. */
   char * loadaddr;
+  char * loadoffs;
   char * libname;
   unsigned int dynamic_addr;
   struct elf_resolve * next;
   struct elf_resolve * prev;
   /* Nothing after this address is used by gdb. */
-  char * loadoffs;
   enum {elf_lib, elf_executable,program_interpreter, loaded_file} libtype;
   struct dyn_elf * symbol_scope;
   unsigned short usage_count;