New Patch to fix MIPS -mno-shared with multi-got...
David Daney
ddaney@avtrex.com
Fri Mar 4 21:53:00 GMT 2005
Daniel Jacobowitz wrote:
> On Fri, Mar 04, 2005 at 11:42:33AM -0800, David Daney wrote:
>
>>Attached is what I hope is the final version of the patch. I had to
>>bzip2 it because the testcase is a bit large.
>
>
> If you don't mind, could you try to do something like the multi-GOT
> test for TLS? It's smaller, easier to edit and proofread, and requires
> less constant maintenance.
>
> I don't really dig 100k linker tests.
>
Thanks for the pointer. You shamed me into creating a more compact
version of the test case.
Tested on i686-linux -> mipsel-linux cross with make -k check no
regressions found.
bfd ChangeLog:
2005-03-04 David Daney <ddaney@avtrex.com>
* elfxx-mips.c (mips_elf_calculate_relocation): Handle special
'__gnu_local_gp' symbol used by gas -mno-shared.
gas ChangeLog:
2005-03-04 David Daney <ddaney@avtrex.com>
* config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp' instead
of '_gp' for -mno-shared optimization.
(s_cpload): Ditto.
(s_abicalls): Document it in the comment.
(md_show_usage): Document the -mno-shared option.
gas/testsuite ChangeLog:
2005-03-04 David Daney <ddaney@avtrex.com>
* gas/mips/elf-rel23b.d: Use '__gnu_local_gp' instead
of '_gp' for -mno-shared optimization.
* gas/mips/elf-rel25a.d: Ditto.
ld/testsuite ChangeLog:
2005-03-04 David Daney <ddaney@avtrex.com>
* ld-mips-elf/multi-got-no-shared{-1.s, -2.s, .d}: New test.
* ld-mips-elf/mips-elf.exp: Run it.
If O.K. I can try to commit as it appears that I have CVS write access
(although never tested with binutils).
David Daney.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils.d
URL: <https://sourceware.org/pipermail/binutils/attachments/20050304/0ed4e213/attachment.ksh>
More information about the Binutils
mailing list