[PATCH] D74006: [MC][ELF] Make linked-to symbol name part of ELFSectionKey
H.J Lu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 10:15:28 PST 2020
hjl.tools added a comment.
In D74006#1860062 <https://reviews.llvm.org/D74006#1860062>, @MaskRay wrote:
> .section .foo,"o", at progbits,foo # first in the output section .foo due to stable sort
> .byte 0
>
> .section .foo,"o", at progbits,bar # second
> .byte 1
>
>
> This is what lld currently does. It will be nice to get a sign-up from GNU ld. An alternative choice is that users should not rely on the order. I'm inclined to define an order here.
I don't believe that assembler nor linker should guarantee any orders here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74006/new/
https://reviews.llvm.org/D74006
More information about the llvm-commits
mailing list