mips bfd: define NAME-like macro for elfxx-mips

Alexandre Oliva aoliva@redhat.com
Mon Nov 18 12:53:00 GMT 2002


The NAME macro doesn't work on elfxx-mips.c since it is not compiled
for either 32- or 64-bit ELF, but there are a number of places in this
file that reference a 32-bit function explicitly.  Without checking
whether those places are actually run only for 32-bit bfd operations,
I went ahead and introduced a NAME-equivalent macro that decides for
32- or 64- bit operations using the bfd, similarly to what was done
with the ELF_R_* macros.  I just named it differently from NAME,
because I didn't realize ELF_R_* had set a precedent of not renaming
the corresponding macro, but I myself find it confusing that the
prototype (so to speak) of the macro changes, so I kept the name
different.  Comments?  Ok to install?  Tested with a build for target
mips64-linux and a native irix6 build.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-mips-mname.patch
Type: text/x-patch
Size: 2696 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20021118/22886142/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Binutils mailing list