diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-02-13 13:36:55 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-02-13 13:36:55 +0000 |
commit | 28f34a8f2046c380bca00442d299256099495d37 (patch) | |
tree | 0c962df2d2f1688fde0bdd11d07e81323b8d0878 /gdb/solib-svr4.c | |
parent | 701ed6dcfb88d2dd18280239c3112f8403c470b4 (diff) | |
download | gdb-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/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |