diff options
author | Fangrui Song <i@maskray.me> | 2024-06-06 12:13:19 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-06-06 12:13:19 -0700 |
commit | 9ad0175ea0099351050e1dfb0074d9938f469404 (patch) | |
tree | 695fd7efeee97ec714678ae7ed8cfa5902439af5 /utils | |
parent | c771b670eabbd38867d43475dacd35a1b572e9b5 (diff) | |
download | llvm-9ad0175ea0099351050e1dfb0074d9938f469404.zip llvm-9ad0175ea0099351050e1dfb0074d9938f469404.tar.gz llvm-9ad0175ea0099351050e1dfb0074d9938f469404.tar.bz2 |
[ELF] Keep non-alloc orphan sections at the end
https://reviews.llvm.org/D85867 changed the way we assign file offsets
(alloc sections first, then non-alloc sections).
It also removed a non-alloc special case from `findOrphanPos`.
Looking at the memory-nonalloc-no-warn.test change, which would be
needed by #93761, it makes sense to restore the previous behavior: when
placing non-alloc orphan sections, keep these sections at the end so
that the section index order matches the file offset order.
This change is cosmetic. In sections-nonalloc.s, GNU ld places the
orphan `other3` in the middle and the orphan .symtab/.shstrtab/.strtab
at the end.
Pull Request: https://github.com/llvm/llvm-project/pull/94519
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions