This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: difficulties with PIC and gas on MIPS platform
- To: ethan at cs dot columbia dot edu
- Subject: Re: difficulties with PIC and gas on MIPS platform
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 2 May 2000 23:07:20 -0700
- CC: binutils at sourceware dot cygnus dot com
- References: <200005030046.UAA26534@diamond.cs.columbia.edu>
Date: Tue, 2 May 2000 20:46:09 -0400 (EDT)
From: Ethan Solomita <ethan@cs.columbia.edu>
NetBSD has definitions which adds code at the top of each .S file's
LEAF functions, which contains something like:
...
jal _mcount;
addiu sp,sp,-8;
...
Code like that must be wrapped in `.set noreorder' in order to be
correct.
If the code does use `.set noreorder', and gas is expanding the jal,
then I think it is a gas bug.
Of course, the code won't actually work correctly in PIC mode, so it
is arguably a coding bug, too.
Ian