This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: difficulties with PIC and gas on MIPS platform


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]