aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-02-13 13:36:55 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-02-13 13:36:55 +0000
commit28f34a8f2046c380bca00442d299256099495d37 (patch)
tree0c962df2d2f1688fde0bdd11d07e81323b8d0878 /gdb
parent701ed6dcfb88d2dd18280239c3112f8403c470b4 (diff)
downloadgdb-28f34a8f2046c380bca00442d299256099495d37.zip
gdb-28f34a8f2046c380bca00442d299256099495d37.tar.gz
gdb-28f34a8f2046c380bca00442d299256099495d37.tar.bz2
gdb/
* solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner block.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-svr4.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c66b928..5181d4d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
+ block.
+
+2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
only if INFO_VERBOSE.
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index ef32f46..ae3f49a 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -176,7 +176,7 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd)
if (so->lm_info->l_addr == (CORE_ADDR)-1)
{
struct bfd_section *dyninfo_sect;
- CORE_ADDR l_addr, l_dynaddr, dynaddr, align = 0x1000;
+ CORE_ADDR l_addr, l_dynaddr, dynaddr;
l_addr = LM_ADDR_FROM_LINK_MAP (so);
@@ -193,6 +193,8 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd)
if (dynaddr + l_addr != l_dynaddr)
{
+ CORE_ADDR align = 0x1000;
+
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
{
Elf_Internal_Ehdr *ehdr = elf_tdata (abfd)->elf_header;