aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-02-12 16:44:36 +1030
committerAlan Modra <amodra@gmail.com>2014-02-12 22:10:09 +1030
commit795bc6b3eac9e3f80279df69c05d70fc44eaaa4c (patch)
tree05936288596641f8b197892fe10826ead1935987 /bfd/elf32-ppc.h
parentb407645f7ef086a9a527c8f62499b4255868e748 (diff)
downloadgdb-795bc6b3eac9e3f80279df69c05d70fc44eaaa4c.zip
gdb-795bc6b3eac9e3f80279df69c05d70fc44eaaa4c.tar.gz
gdb-795bc6b3eac9e3f80279df69c05d70fc44eaaa4c.tar.bz2
Enable ppc476 workaround for ld -r.
The Linux kernel builds modules using ld -r. These might need the ppc476 workaround, so enable it for ld -r if sections have sufficient alignment to tell location within a page. bfd/ * elf32-ppc.c (ppc_elf_relax_section): Enable ppc476 workaround for ld -r, when code sections are sufficiently aligned. * elf32-ppc.h (struct ppc_elf_params): Delete pagesize. Add pagesize_p2. ld/ * emultempl/ppc32elf.em (pagesize): New static var. (ppc_after_open_output): Set params.pagesize_p2 from pagesize. (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
Diffstat (limited to 'bfd/elf32-ppc.h')
-rw-r--r--bfd/elf32-ppc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.h b/bfd/elf32-ppc.h
index 0909245..fef177a 100644
--- a/bfd/elf32-ppc.h
+++ b/bfd/elf32-ppc.h
@@ -43,7 +43,7 @@ struct ppc_elf_params
/* Avoid execution falling into new page. */
int ppc476_workaround;
- int pagesize;
+ unsigned int pagesize_p2;
};
void ppc_elf_link_params (struct bfd_link_info *, struct ppc_elf_params *);