This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [PATCH] mips: Do not use jal to reach __libc_start_main
- From: "Petar Jovanovic" <petar dot jovanovic at rt-rk dot com>
- To: "'Joseph Myers'" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>, <petar dot jovanovic at imgtec dot com>
- Date: Tue, 18 Nov 2014 20:32:48 +0100
- Subject: RE: [PATCH] mips: Do not use jal to reach __libc_start_main
- Authentication-results: sourceware.org; auth=none
- References: <1416266925-100072-1-git-send-email-petar dot jovanovic at rt-rk dot com> <alpine dot DEB dot 2 dot 10 dot 1411172355520 dot 3980 at digraph dot polyomino dot org dot uk>
In short, the failing test program (reported in #17601) has been tested
in the following combinations (given to gcc):
1. -EL
2. -EL -fPIC
3. -EL -fPIC -pie
4. -EL -mabi=32 -mips16
5. -EL -mabi=32 -mips16 -fPIC
6. -EL -mabi=32 -mips16 -fPIC -pie
To execute it correctly for options 1, 2, 4 and 5, additional change
(described in the bug tracker) was added in gcc/config/mips/mips.h.
Further, a subset (1500 tests) from DejaGnu GCC test suite has been
executed and has shown no regressions.
Regards,
Petar
-----Original Message-----
From: Joseph Myers [mailto:joseph@codesourcery.com]
Sent: Tuesday, November 18, 2014 12:57 AM
To: Petar Jovanovic
Cc: libc-alpha@sourceware.org; petar.jovanovic@imgtec.com
Subject: Re: [PATCH] mips: Do not use jal to reach __libc_start_main
On Tue, 18 Nov 2014, Petar Jovanovic wrote:
> Since __libc_start_main may not be in the same 256MB-aligned region as
> the function __start, replace use of jal instruction with la/jalr.
Could you detail how this patch has been tested? (And provide a ChangeLog
entry for it.)
--
Joseph S. Myers
joseph@codesourcery.com