[PATCH] [Object] Support reading 64-bit MIPS ELF archives

Simon Atanasyan simon at atanasyan.com
Tue Feb 10 14:23:46 PST 2015


Hi rafael,

The 64-bit MIPS ELF archive file format is used by MIPS64 targets. The main difference from a regular archive file is the symbol table format:
* ar_name is equal to "/SYM64/"
* number of symbols and offsets are 64-bit integers

[64-bit ELF Object File Specification. Page 96](http://techpubs.sgi.com/library/manuals/4000/007-4658-001/pdf/007-4658-001.pdf)

The patch allows reading of such archive files by llvm-nm, llvm-objdump and other tools. But it does not support archive files with number of symbols and/or offsets exceed 2^32. I think it is a rather rare case requires more significant modification of the `Archive` class code.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7546

Files:
  include/llvm/Object/Archive.h
  lib/Object/Archive.cpp
  test/Object/Inputs/archive-test.a-irix6-mips64el
  test/Object/nm-irix6.test

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7546.19707.patch
Type: text/x-patch
Size: 3948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150210/29a8cdb5/attachment.bin>


More information about the llvm-commits mailing list