[patch 2/9] Nios II port, bfd support

Alan Modra amodra@gmail.com
Wed Jan 30 22:10:00 GMT 2013
On Wed, Jan 30, 2013 at 02:17:37PM -0700, Sandra Loosemore wrote:
> On 01/28/2013 06:50 PM, Alan Modra wrote:
> >
> >>+	    case DT_PLTGOT:
> >>+	      name = ".got";
> >>+	      goto get_vma;
> >>+	    case DT_JMPREL:
> >>+	      name = ".rela.plt";
> >>+	    get_vma:
> >>+	      s = bfd_get_section_by_name (output_bfd, name);
> >
> >elf hash table, srelgot and srelplt.
> 
> I assume sgot rather than srelgot is intended for the first one,

Oh yeah, sorry.

> but....  making this change horribly broke all execution tests for
> the GNU/Linux target.  The original code is returning sections in
> the output bfd, while the suggested changes return different
> sections owned by one of the input bfds.  Looking at the output from

See eg. elf32-i386.c setting of DT_PLTGOT.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list