public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@cambridge.redhat.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: aj@suse.de, drepper@redhat.com, binutils@sources.redhat.com
Subject: Re: [PATCH] Support -z combreloc in binutils (take 2)
Date: Thu, 23 Aug 2001 01:34:00 -0000	[thread overview]
Message-ID: <m3y9obkwiq.fsf@north-pole.nickc.cambridge.redhat.com> (raw)
In-Reply-To: <20010822225702.A5765@sunsite.ms.mff.cuni.cz>

Hi Jakub,

> 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* elf-bfd.h (enum elf_reloc_type_class): New.
> 	(struct elf_backend_data): Add elf_backend_reloc_type_class.
> 	(_bfd_elf_reloc_type_class): New.
> 	* elfxx-target.h (elf_backend_reloc_type_class): Define.
> 	(elfNN_bed): Add elf_backend_reloc_type_class.
> 	* elf.c (_bfd_elf_reloc_type_class): New.
> 	* elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
> 	is against read-only section.
> 	(elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
> 	looking up section names for DT_TEXTREL.
> 	(elf_i386_reloc_type_class): New.
> 	(elf_backend_reloc_type_class): Define.
> 	* elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
> 	reloc is against read-only section.
> 	(elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
> 	looking up section names for DT_TEXTREL.
> 	(elf32_sparc_reloc_type_class): New.
> 	(elf_backend_reloc_type_class): Define.
> 	* elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
> 	reloc is against read-only section.
> 	(sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
> 	looking up section names for DT_TEXTREL.
> 	(sparc64_elf_reloc_type_class): New.
> 	(elf_backend_reloc_type_class): Define.
> 	* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
> 	(get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
> 	section.
> 	(elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
> 	instead of looking up section names for DT_TEXTREL.
> 	(elfNN_ia64_reloc_type_class): New.
> 	(elf_backend_reloc_type_class): Define.
> 	* elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
> 	(struct elf_link_sort_rela): New.
> 	(elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
> 	(elf_bfd_final_link): Call elf_link_sort_relocs.
> 	Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
> 	necessary.
> 
> 	* bfdlink.h (struct bfd_link_info): Add combreloc and
> 	spare_dynamic_tags fields.
> 
> 	* emultempl/elf32.em (place_orphan): Place orphan .rel* sections
> 	into .rel.dyn resp. .rela.dyn if combreloc.
> 	(get_script): If .x linker script is equal to .xn, only put it
> 	once into the binary.
> 	Add .xc and .xsc scripts.
> 	(parse_args): Handle -z combreloc and -z nocombreloc.
> 	* scripttempl/elf.sc (.rela.sbss): Fix a typo.
> 	For .xc and .xsc scripts put all .rel* or .rela* input sections
> 	but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
> 	* genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
> 	is elf.
> 	Strip trailing whitespace from script.
> 	Generate .xc and .xsc scripts if requested.
> 	* ldmain.c (main): Initialize link_info.combreloc and
> 	link_info.spare_dynamic_tags.
> 	* lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
> 	(ld_options): Add --spare-dynamic-tags option.
> 	(parse_args): Likewise.
> 	* ld.texinfo: Document -z combreloc and -z nocombreloc.
> 	* ldint.texinfo: Document .xc and .xsc linker scripts.
> 	* NEWS: Add notes about -z combreloc and SHF_MERGE.

Approved.  Please check in at your leisure!

Cheers
        Nick

      reply	other threads:[~2001-08-23  1:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-15  8:27 [PATCH] Support -z combreloc in binutils Jakub Jelinek
2001-08-15 23:56 ` Andreas Jaeger
2001-08-16  0:08   ` Jakub Jelinek
2001-08-16  0:17   ` H . J . Lu
2001-08-16  2:22 ` Andreas Jaeger
2001-08-21  9:45 ` Nick Clifton
2001-08-21  9:51   ` Jakub Jelinek
2001-08-22 23:16   ` [PATCH] Support -z combreloc in binutils (take 2) Jakub Jelinek
2001-08-23  1:34     ` Nick Clifton [this message]

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=m3y9obkwiq.fsf@north-pole.nickc.cambridge.redhat.com \
    --to=nickc@cambridge.redhat.com \
    --cc=aj@suse.de \
    --cc=binutils@sources.redhat.com \
    --cc=drepper@redhat.com \
    --cc=jakub@redhat.com \
    /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).