diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-05-03 18:04:02 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-05-03 18:04:02 +0000 |
commit | 30510692eb858ac9c7262a187d78337a7503d196 (patch) | |
tree | 759693eef9f1f7ae548dc42d4835b6b914d4669a /gdb/symfile.c | |
parent | 7284e1bed8f26d644523bcf82dbfc03ff594ff36 (diff) | |
download | gdb-30510692eb858ac9c7262a187d78337a7503d196.zip gdb-30510692eb858ac9c7262a187d78337a7503d196.tar.gz gdb-30510692eb858ac9c7262a187d78337a7503d196.tar.bz2 |
* Makefile.in (objfiles.o): Update.
* exec.c (exec_set_section_address): Support p->addr != 0.
* objfiles.c (objfile_relocate): Update exec_ops section
addresses.
* symfile.c (place_section): Move exec_set_section_address call...
(default_symfile_offsets): ...to here.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 3bbd1c3..8e65132 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -535,8 +535,6 @@ place_section (bfd *abfd, asection *sect, void *obj) offsets[sect->index] = start_addr; arg->lowest = start_addr + bfd_get_section_size (sect); - - exec_set_section_address (bfd_get_filename (abfd), sect->index, start_addr); } /* Parse the user's idea of an offset for dynamic linking, into our idea @@ -635,6 +633,8 @@ default_symfile_offsets (struct objfile *objfile, continue; bfd_set_section_vma (abfd, cur_sec, offsets[cur_sec->index]); + exec_set_section_address (bfd_get_filename (abfd), cur_sec->index, + offsets[cur_sec->index]); offsets[cur_sec->index] = 0; } } |