aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-11-06 05:53:10 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-11-06 05:53:10 +0000
commitb915d07a8e62839ca745a48fc54d2c7ed793ebcd (patch)
tree325a59a03a613970db9f69766b32611b0e8f0d5c /llvm/lib/Object/COFFObjectFile.cpp
parent4c6bd6a10d06be042837df9004d7a5afc5ebca70 (diff)
downloadllvm-b915d07a8e62839ca745a48fc54d2c7ed793ebcd.zip
llvm-b915d07a8e62839ca745a48fc54d2c7ed793ebcd.tar.gz
llvm-b915d07a8e62839ca745a48fc54d2c7ed793ebcd.tar.bz2
[Mips] Check ELF flags to prevent linking of incompatible files
1. The path checks ELF header flags to prevent linking of incompatible files. For example we do not allow to link files with different ABI, -mnan flags, some combination of target CPU etc. 2. The patch merge ELF header flags from input object files to put their combination to the generated file. For example, if some input files have EF_MIPS_NOREORDER flag we need to put this flag to the output file header. I use the `parseFile()` (not `canParse()`) method because in case of recognition of incorrect input flags combination we should show detailed error message and stop the linking process and should not try to use another `Reader`. llvm-svn: 221439
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions