From: Nick Clifton <nickc@redhat.com>
To: "H. J. Lu" <hjl@lucon.org>
Cc: binutils@sources.redhat.com
Subject: Re: PATCH: Add "-z max-page-size=xxxx"/"-z common-page-size=xxxx"
Date: Wed, 31 May 2006 11:36:00 -0000 [thread overview]
Message-ID: <447C1E36.5010308@redhat.com> (raw)
In-Reply-To: <20060523174551.GA8542@lucon.org>
Hi H. J.
> bfd/
>
> 2006-05-22 H.J. Lu <hongjiu.lu@intel.com>
>
> * bfd.c (bfd_emul_get_maxpagesize): New.
> (bfd_elf_set_pagesize): Likewise.
> (bfd_emul_set_maxpagesize): Likewise.
> (bfd_emul_get_commonpagesize): Likewise.
> (bfd_emul_set_commonpagesize): Likewise.
>
> * elf-bfd.h (elf_backend_data): Add commonpagesize.
> (xvec_get_elf_backend_data): New.
> (get_elf_backend_data): Use xvec_get_elf_backend_data.
>
> * elf.c (assign_file_positions_for_load_sections): Set
> p->p_vaddr with m->p_vaddr if it is valid. Set p->p_align with
> m->p_align if it is valid. Adjust p->p_vaddr only if m->p_vaddr
> isn't valid.
> (copy_elf_program_header): Copy p_vaddr and p_align. Set
> p_vaddr_valid and p_align_valid to 1.
>
> * elf32-arm.c (elf32_arm_vxworks_bed): Remove const.
> * elfxx-target.h (elfNN_bed): Likewise.
>
> * elf32-arm.c (ELF_COMMONPAGESIZE): Defined.
> * elf32-mips.c (ELF_COMMONPAGESIZE): Likewise.
> * elf32-ppc.c (ELF_COMMONPAGESIZE): Likewise.
> * elf32-sh.c (ELF_COMMONPAGESIZE): Likewise.
> * elf32-sh64.c (ELF_COMMONPAGESIZE): Likewise.
> * elf32-sparc.c (ELF_COMMONPAGESIZE): Likewise.
> * elf64-alpha.c (ELF_COMMONPAGESIZE): Likewise.
> * elf64-ppc.c (ELF_COMMONPAGESIZE): Likewise.
> * elf64-sparc.c (ELF_COMMONPAGESIZE): Likewise.
> * elf64-x86-64.c (ELF_COMMONPAGESIZE): Likewise.
> * elfn32-mips.c (ELF_COMMONPAGESIZE): Likewise.
> * elfxx-ia64.c (ELF_COMMONPAGESIZE): Likewise.
>
> * elfxx-target.h (ELF_COMMONPAGESIZE): Define if not defined.
> (elfNN_bed): Initialize commonpagesize with ELF_COMMONPAGESIZE.
>
> * targets.c (bfd_find_target): Support NULL abfd.
>
> include/elf/
>
> 2006-05-22 H.J. Lu <hongjiu.lu@intel.com>
>
> * internal.h (elf_segment_map): Add p_vaddr, p_align,
> p_vaddr_valid and p_align_valid.
>
> ld/
>
> 2006-05-22 H.J. Lu <hongjiu.lu@intel.com>
>
> * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
> "CONSTANT (MAXPAGESIZE)".
> * emulparams/armelf_nbsd.sh: Likewise.
> * emulparams/armelf_vxworks.sh: Likewise.
> * emulparams/armnto.sh: Likewise.
> * emulparams/armsymbian.sh: Likewise.
> * emulparams/crislinux.sh: Likewise.
> * emulparams/elf32_i860.sh: Likewise.
> * emulparams/elf32_i960.sh: Likewise.
> * emulparams/elf32am33lin.sh: Likewise.
> * emulparams/elf32bfinfd.sh: Likewise.
> * emulparams/elf32bmipn32-defs.sh: Likewise.
> * emulparams/elf32frvfd.sh: Likewise.
> * emulparams/elf32i370.sh: Likewise.
> * emulparams/elf32lppcnto.sh: Likewise.
> * emulparams/elf32mcore.sh: Likewise.
> * emulparams/elf32openrisc.sh: Likewise.
> * emulparams/elf32ppcnto.sh: Likewise.
> * emulparams/elf32ppcwindiss.sh: Likewise.
> * emulparams/elf32vax.sh: Likewise.
> * emulparams/elf32xc16x.sh: Likewise.
> * emulparams/elf32xc16xl.sh: Likewise.
> * emulparams/elf32xc16xs.sh: Likewise.
> * emulparams/elf64_aix.sh: Likewise.
> * emulparams/elf64hppa.sh: Likewise.
> * emulparams/elf64mmix.sh: Likewise.
> * emulparams/elf_i386_be.sh: Likewise.
> * emulparams/elf_i386_chaos.sh: Likewise.
> * emulparams/elf_i386_ldso.sh: Likewise.
> * emulparams/hppa64linux.sh: Likewise.
> * emulparams/hppalinux.sh: Likewise.
> * emulparams/hppaobsd.sh: Likewise.
> * emulparams/i386lynx.sh: Likewise.
> * emulparams/i386moss.sh: Likewise.
> * emulparams/i386nto.sh: Likewise.
> * emulparams/i386nw.sh: Likewise.
> * emulparams/m32relf_linux.sh: Likewise.
> * emulparams/m68kpsos.sh: Likewise.
> * emulparams/or32elf.sh: Likewise.
> * emulparams/pjelf.sh: Likewise.
> * emulparams/pjlelf.sh: Likewise.
> * emulparams/ppclynx.sh: Likewise.
> * emulparams/ppcnw.sh: Likewise.
> * emulparams/shelf32_nbsd.sh : Likewise.
> * emulparams/shelf_nbsd.sh: Likewise.
> * emulparams/shelf_nto.sh: Likewise.
> * emulparams/shlelf_nto.sh: Likewise.
> * emulparams/xtensa-config.sh: Likewise.
>
> * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
> "CONSTANT (MAXPAGESIZE)".
> (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
> * emulparams/elf32_sparc.sh: Likewise.
> * emulparams/elf32bmip.sh: Likewise.
> * emulparams/elf32ppccommon.sh: Likewise.
> * emulparams/elf64_ia64.sh: Likewise.
> * emulparams/elf64_s390.sh: Likewise.
> * emulparams/elf64_sparc.sh: Likewise.
> * emulparams/elf64alpha.sh: Likewise.
> * emulparams/elf64ppc.sh: Likewise.
> * emulparams/elf_i386.sh: Likewise.
> * emulparams/elf_i386_vxworks.sh: Likewise.
> * emulparams/elf_s390.sh: Likewise.
> * emulparams/elf_x86_64.sh: Likewise.
> * emulparams/shlelf32_linux.sh: Likewise.
> * emulparams/shlelf_linux.sh: Likewise.
>
> * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
> "CONSTANT (COMMONPAGESIZE)".
> * emulparams/elf32btsmipn32.sh: Likewise.
>
> * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
> "-z max-page-size=" and "-z common-page-size=".
> (gld${EMULATION_NAME}_list_options): Likewise.
>
> * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
>
> * ld.texinfo: Document "-z max-page-size=" and
> "-z common-page-size=".
>
> * ldexp.c (exp_print_token): Handle CONSTANT.
> (fold_name): Likewise.
> * ldgram.y: Likewise.
> * ldlex.l: Likewise.
>
> * ldmain.c (main): Initiliaze config.maxpagesize and
> config.commonpagesize. Call bfd_emul_set_maxpagesize if
> config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
> config.commonpagesize config.maxpagesize isn't 0.
>
> ld/testsuite/
>
> 2006-05-22 H.J. Lu <hongjiu.lu@intel.com>
>
> * ld-elf/binutils.exp: New file.
> * ld-elf/maxpage.d: Likewise.
> * ld-elf/maxpage.s: Likewise.
Approved (mainline only) - please apply.
Cheers
Nick
next prev parent reply other threads:[~2006-05-30 10:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-17 11:24 RFC: Change x86-64 maximum page size to 2MB H. J. Lu
2006-05-19 12:39 ` Nick Clifton
2006-05-22 23:57 ` H. J. Lu
2006-05-24 7:24 ` PATCH: Add "-z max-page-size=xxxx"/"-z common-page-size=xxxx" H. J. Lu
2006-05-31 11:36 ` Nick Clifton [this message]
2006-05-26 4:33 ` PATCH: Change x86-64 maximum page size to 2MB H. J. Lu
2006-05-26 21:48 ` Daniel Jacobowitz
2006-05-27 0:47 ` H. J. Lu
2006-05-27 16:33 ` H. J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=447C1E36.5010308@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sources.redhat.com \
--cc=hjl@lucon.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).