While updating the test, change -l -S to -S -l as the output of -S goes before -l. llvm-svn: 359653
If we do, the freebsd dynamic linker tries to call mmap with a size 0, which fails. It is hard to avoid creating them when linker scripts are used, so we just delete empty PT_LOADs at the end. llvm-svn: 288808