HomePhabricator

[ELF][MIPS] MIPS .reginfo sections handling

Description

[ELF][MIPS] MIPS .reginfo sections handling

MIPS .reginfo section provides information on the registers used by
the code in the object file. Linker should collect this information and
write .reginfo section in the output file. This section contains a union
of used registers masks taken from input .reginfo sections and final
value of the _gp symbol.

For details see the "Register Information" section in Chapter 4 in the
following document:
ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf

The patch implements .reginfo sections handling with a couple missed
features: a) it does not put output .reginfo section into the separate
REGINFO segment; b) it does not merge ri_cprmask masks from input
section. These features will be implemented later.

Differential Revision: http://reviews.llvm.org/D15669

Details

Committed
atanasyanDec 20 2015, 2:57 AM
Differential Revision
D15669: [ELF][MIPS] MIPS .reginfo sections handling
Parents
rL256118: [llvm-objdump] Move COFF function to where it belongs.
Branches
Unknown
Tags
Unknown