bfd/elf-m10300.c: odd code

Alexandre Oliva aoliva@redhat.com
Thu May 27 07:35:00 GMT 2004


On May 27, 2004, Alexandre Oliva <aoliva@redhat.com> wrote:

> Err...  I thought this patch had gone in a while ago, but it doesn't
> look like it.  I'm going ahead and checking this in.  Tested on
> i686-pc-linux-gnu.

Here's another fix for mn10300 relaxation problems.  We did function
relaxation using custom calling conventions (i.e., merging movm into
the caller) even for dynamic symbols.  Also, C++ thunk code calls a
local alias to a global function, so we relaxed the thunk without
realizing we were actually relaxing the global function.  Can't do
that.  I'm not entirely sure this patch will cover correctly all cases
(e.g., can we ever decide to use custom calling conventions for a
global symbol?), but this significantly improves C++ test results with
-mrelax, so I'm going ahead and checking it in.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-mn10300-relax-local-global-dynamic.patch
Type: text/x-patch
Size: 4335 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040527/9ee0ab09/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Binutils mailing list