[XCOFF][AIX] report_fatal_error when an overflow section is needed
authorjasonliu <jasonliu.development@gmail.com>
Mon, 8 Jun 2020 18:51:33 +0000 (18:51 +0000)
committerjasonliu <jasonliu.development@gmail.com>
Mon, 8 Jun 2020 19:59:04 +0000 (19:59 +0000)
commit775ef44514b333ad042bea37204323bff295643e
tree999eb8d31e4aa9f17c16f65d8d1fe6e7d2f939af
parent38674030c026b6ba432dc81440bd3790d94b7c48
[XCOFF][AIX] report_fatal_error when an overflow section is needed

If there are more than 65534 relocation entries in a single section,
we should generate an overflow section.
Since we don't support overflow section for now, we should generate
an error.

Differential revision: https://reviews.llvm.org/D81104
llvm/include/llvm/BinaryFormat/XCOFF.h
llvm/lib/MC/XCOFFObjectWriter.cpp
llvm/lib/Object/XCOFFObjectFile.cpp
llvm/test/CodeGen/PowerPC/aix-xcoff-huge-relocs.ll [new file with mode: 0644]