[ELF][MIPS] Allow .MIPS.abiflags larger than one Elf_Mips_ABIFlags struct
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 21 Dec 2016 05:31:57 +0000 (05:31 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 21 Dec 2016 05:31:57 +0000 (05:31 +0000)
commit86dc60d8d4c7cc720f578e4a18fa2664483bc186
tree326837dde143448aa2317350caa3ccc6e749335e
parentb6a8f02251fce3cb74dad472940e7717ecafc048
[ELF][MIPS] Allow .MIPS.abiflags larger than one Elf_Mips_ABIFlags struct

Older versions of BFD generate libraries with .MIPS.abiflags that only
concatenate the individual .MIPS.abiflags sections instead of merging.

Patch by Alexander Richardson.

Differential revision: https://reviews.llvm.org/D27770

llvm-svn: 290237
lld/ELF/SyntheticSections.cpp
lld/test/ELF/Inputs/mips-concatenated-abiflags.o [new file with mode: 0644]
lld/test/ELF/mips-merge-abiflags.s [new file with mode: 0644]