denis-protivensky added a comment. Rafael, you're right. There may be more than one output section description with the same name. But headers in PHDRS command should have unique names, so I'll leave only check for duplicate header names. http://reviews.llvm.org/D12027