From: Richard Sandiford <rdsandiford@googlemail.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
Catherine Moore <clm@codesourcery.com>,
<binutils@sourceware.org>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/2] MIPS: Compressed PLT/stubs support
Date: Mon, 10 Jun 2013 18:08:00 -0000 [thread overview]
Message-ID: <87wqq17slt.fsf@talisman.default> (raw)
In-Reply-To: <alpine.DEB.1.10.1306101743550.16287@tp.orcam.me.uk> (Maciej W. Rozycki's message of "Mon, 10 Jun 2013 17:59:29 +0100")
"Maciej W. Rozycki" <macro@codesourcery.com> writes:
> 2013-06-10 Maciej W. Rozycki <macro@codesourcery.com>
>
> bfd/
> * elfxx-mips.h (_bfd_mips_elf_get_synthetic_symtab): New
> prototype.
> * elf32-mips.c (elf_backend_plt_sym_val): Remove macro.
> (bfd_elf32_get_synthetic_symtab): New macro.
> * elfxx-mips.c (plt_entry): New structure.
> (mips_elf_link_hash_entry): Add use_plt_entry member.
> (mips_elf_link_hash_table): Rename plt_entry_size member to
> plt_mips_entry_size. Add plt_comp_entry_size, plt_mips_offset,
> plt_comp_offset, plt_got_index entries and plt_header_is_comp
> members.
> (STUB_LW_MICROMIPS, STUB_MOVE_MICROMIPS): New macros.
> (STUB_LUI_MICROMIPS, STUB_JALR_MICROMIPS): Likewise.
> (STUB_ORI_MICROMIPS, STUB_LI16U_MICROMIPS): Likewise.
> (STUB_LI16S_MICROMIPS): Likewise.
> (MICROMIPS_FUNCTION_STUB_NORMAL_SIZE): Likewise.
> (MICROMIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
> (micromips_o32_exec_plt0_entry): New variable.
> (mips16_o32_exec_plt_entry): Likewise.
> (micromips_o32_exec_plt_entry): Likewise.
> (mips_elf_link_hash_newfunc): Initialize use_plt_entry.
> (mips_elf_output_extsym): Update to use gotplt_union's plist
> member rather than offset.
> (mips_elf_gotplt_index): Likewise. Remove the VxWorks
> restriction. Use MIPS_ELF_GOT_SIZE to calculate GOT address.
> (mips_elf_count_got_symbols): Update to use gotplt_union's plist
> member rather than offset.
> (mips_elf_calculate_relocation): Handle MIPS16/microMIPS PLT
> entries.
> (_bfd_mips_elf_create_dynamic_sections): Don't set PLT sizes
> here.
> (mips_elf_make_plt_record): New function.
> (_bfd_mips_elf_check_relocs): Update comment. Record occurences
> of JAL relocations that might need a PLT entry.
> (_bfd_mips_elf_adjust_dynamic_symbol): Update to use
> gotplt_union's plist member rather than offset. Set individual
> PLT entry sizes here. Handle MIPS16/microMIPS PLT entries.
> Don't set the symbol's value in the symbol table for PLT
> references here. Don't set the PLT or PLT GOT section sizes
> here.
> (mips_elf_estimate_stub_size): Handle microMIPS stubs.
> (mips_elf_allocate_lazy_stub): Likewise.
> (mips_elf_lay_out_lazy_stubs): Likewise. Define a _MIPS_STUBS_
> magic symbol.
> (mips_elf_set_plt_sym_value): New function.
> (_bfd_mips_elf_size_dynamic_sections): Set PLT header size and
> PLT and PLT GOT section sizes here. Set the symbol values in
> the symbol table for PLT references here. Handle microMIPS
> annotation of the _PROCEDURE_LINKAGE_TABLE_ magic symbol.
> (_bfd_mips_elf_finish_dynamic_symbol): Update to use
> gotplt_union's plist member rather than offset. Handle
> MIPS16/microMIPS PLT entries. Handle microMIPS stubs.
> (_bfd_mips_vxworks_finish_dynamic_symbol): Update to use
> gotplt_union's plist member rather than offset. Use
> MIPS_ELF_GOT_SIZE to calculate GOT address.
> (mips_finish_exec_plt): Handle microMIPS PLT. Return status.
> (_bfd_mips_elf_finish_dynamic_sections): Handle result from
> mips_finish_exec_plt.
> (_bfd_mips_elf_link_hash_table_create): Update to use
> gotplt_union's plist member rather than offset.
> (_bfd_mips_elf_get_synthetic_symtab): New function.
>
> include/elf/
> * mips.h (ELF_ST_IS_MIPS_PLT): Respect STO_MIPS16 setting.
> (ELF_ST_SET_MIPS_PLT): Likewise.
>
> gdb/
> * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
> microMIPS synthetic symbols.
>
> ld/
> * emulparams/elf32btsmip.sh: Arrange for .got.plt to be placed
> as close to .plt as possible.
> * scripttempl/elf.sc: Handle $INITIAL_READWRITE_SECTIONS and
> $PLT_NEXT_DATA variables.
>
> ld/testsuite/
> * ld-mips-elf/jalx-2.dd: Update for microMIPS PLT support.
> * ld-mips-elf/pic-and-nonpic-3a.dd: Update for the _MIPS_STUBS_
> magic symbol.
> * ld-mips-elf/pic-and-nonpic-3b.dd: Likewise.
> * ld-mips-elf/pic-and-nonpic-6-n32.dd: Likewise.
> * ld-mips-elf/pic-and-nonpic-6-n64.dd: Likewise.
> * ld-mips-elf/pic-and-nonpic-6-o32.dd: Likewise.
> * ld-mips-elf/stub-dynsym-1-10000.d: Likewise.
> * ld-mips-elf/stub-dynsym-1-2fe80.d: Likewise.
> * ld-mips-elf/stub-dynsym-1-7fff.d: Likewise.
> * ld-mips-elf/stub-dynsym-1-8000.d: Likewise.
> * ld-mips-elf/stub-dynsym-1-fff0.d: Likewise.
> * ld-mips-elf/tlslib-o32.d: Likewise.
>
> opcodes/
> * mips-dis.c (is_mips16_plt_tail): New function.
> (print_insn_mips16): Handle MIPS16 PLT entry's GOT slot address
> word.
> (is_compressed_mode_p): Handle MIPS16/microMIPS PLT entries.
OK for the binutils bits.
Thanks,
Richard
next prev parent reply other threads:[~2013-06-10 18:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 20:44 Maciej W. Rozycki
2013-02-19 20:45 ` [PATCH 2/2] MIPS: Compressed PLT/stubs support test cases Maciej W. Rozycki
2013-02-20 21:53 ` [PATCH 1/2] MIPS: Compressed PLT/stubs support Richard Sandiford
2013-03-09 4:04 ` Maciej W. Rozycki
2013-03-09 9:58 ` Richard Sandiford
2013-06-08 0:22 ` Maciej W. Rozycki
2013-06-08 16:04 ` Richard Sandiford
2013-06-10 17:13 ` Maciej W. Rozycki
2013-06-10 18:08 ` Richard Sandiford [this message]
2013-06-10 19:34 ` Maciej W. Rozycki
2013-06-25 0:40 ` Maciej W. Rozycki
2013-03-11 13:53 ` Joel Brobecker
2013-06-26 15:02 ` Maciej W. Rozycki
2013-02-21 21:06 ` Tom Tromey
2013-02-22 0:58 ` Alan Modra
2013-02-22 6:06 ` Alan Modra
2013-02-22 20:09 ` Tom Tromey
2013-03-09 4:06 ` Maciej W. Rozycki
2013-06-20 16:20 ` [PING^2][PATCH] in_plt_section: support alternate stub section names (was: [PATCH 1/2] MIPS: Compressed PLT/stubs support) Maciej W. Rozycki
2013-06-20 16:50 ` [PING^2][PATCH] in_plt_section: support alternate stub section names Pedro Alves
2013-06-21 11:43 ` Maciej W. Rozycki
2013-06-21 15:34 ` Pedro Alves
2013-06-22 2:24 ` Maciej W. Rozycki
2013-06-24 12:40 ` Pedro Alves
2013-06-24 23:34 ` Maciej W. Rozycki
2013-06-25 9:57 ` Pedro Alves
2013-06-07 13:25 ` [PATCH] in_plt_section: support alternate stub section names (was: [PATCH 1/2] MIPS: Compressed PLT/stubs support) Maciej W. Rozycki
2013-06-13 12:43 ` [PING][PATCH] " Maciej W. Rozycki
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=87wqq17slt.fsf@talisman.default \
--to=rdsandiford@googlemail.com \
--cc=binutils@sourceware.org \
--cc=brobecker@adacore.com \
--cc=clm@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=macro@codesourcery.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