public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: binutils@sourceware.org
Subject: Re: powerpc gold work in progress
Date: Sat, 11 Aug 2012 03:52:00 -0000	[thread overview]
Message-ID: <CAKOQZ8xq9Gc47Vd=Mf394usMTzzp=pCLwA87xJ-DF1KwHUh8gA@mail.gmail.com> (raw)
In-Reply-To: <20120810131816.GA5588@bubble.grove.modra.org>

On Fri, Aug 10, 2012 at 6:18 AM, Alan Modra <amodra@gmail.com> wrote:
>
>         * object.h (Sized_relobj_file::find_shdr): New function.
>         (Sized_relobj_file::find_special_sections): New function.
>         * object.cc (Sized_relobj_file::find_shdr): New function.
>         (Sized_relobj_file::find_eh_frame): Use find_shdr.
>         (Sized_relobj_file::find_special_sections): New function, split out..
>         (Sized_relobj_file::do_read_symbols): ..from here.
>         * output.h (Output_data_got::replace_constant): New function.
>         (Output_data_got::num_entries): New function.
>         (Output_data_got::last_got_offset,set_got_size): Use num_entries.
>         (Output_data_got::got_offset): Protected rather than private.
>         (Output_data_got::replace_got_entry): New function.
>         * output.cc (Output_data_got::replace_got_entry): New function.
>         * powerpc.cc (class Powerpc_relobj): New.
>         (class Powerpc_relocate_functions): Delete all psymval variants or
>         convert to value,addend type.  Delete pcrela, pcrela_unaligned.
>         Implement _ha functions using corresponding _hi function.
>         (Powerpc_relobj::find_special_sections): New function.
>         (Target_powerpc::do_make_elf_object): New function.
>         (class Output_data_got_powerpc): New.
>         (class Output_data_glink): New.
>         (class Powerpc_scan_relocatable_reloc): New.
>         Many more changes throughout file.


> +      s = this->find_shdr(pshdrs, ".got2", names, names_size, NULL);
> +      if (s != NULL)
> +       {
> +         unsigned int ndx = (s - pshdrs) / elfcpp::Elf_sizes<size>::shdr_size;
> +         this->set_got2_shndx (ndx);

No space before left parenthesis in C++ (I know, it's awful).


> +class Powerpc_scan_relocatable_reloc
> +{
> +public:
> +  // Return the strategy to use for a local symbol which is not a
> +  // section symbol, given the relocation type.
> +  inline Relocatable_relocs::Reloc_strategy
> +  local_non_section_strategy(unsigned int r_type, Relobj*, unsigned int r_sym)
> +  {
> +    // We assume that relocation type 0 is NONE.  Targets which are
> +    // different must override.

This comment doesn't mean anything here, and can be removed.


This is OK with those changes.

Thanks.

Ian

  reply	other threads:[~2012-08-11  0:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 13:30 Alan Modra
2012-08-10  2:11 ` Ian Lance Taylor
2012-08-10 16:40   ` Alan Modra
2012-08-11  3:52     ` Ian Lance Taylor [this message]
2012-08-11 14:17     ` Alan Modra
2012-08-11 19:37       ` Ian Lance Taylor

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='CAKOQZ8xq9Gc47Vd=Mf394usMTzzp=pCLwA87xJ-DF1KwHUh8gA@mail.gmail.com' \
    --to=iant@google.com \
    --cc=binutils@sourceware.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).