[ELF2] Ensure strict weak ordering in section sorting (v2)
The fix in r250109 to ensure a strict weak ordering in the section sorting was a bit overzealous. We only use the NOBITS comparison if either A or B is a NOBITS section. Otherwise, we fall through to the target-specific ranking function. Failure to do this causes the sorting to fail in cases where, for example, a .dynamic section happens to end up in between .got and .toc, etc. in the initial ordering (.dynamic has a type SHT_DYNAMIC, compared to SHT_PROGBITS or SHT_NOBITS). llvm-svn: 250190
Loading
Please sign in to comment