https://bugs.llvm.org/show_bug.cgi?id=48549

            Bug ID: 48549
           Summary: Should LLD not set the RELRO program header when
                    targeting -maarch64elf?
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: i...@maskray.me, kristof.be...@arm.com,
                    llvm-bugs@lists.llvm.org, mask...@google.com,
                    smithp...@googlemail.com, srhi...@google.com
            Blocks: 4068

In
https://lore.kernel.org/lkml/20201214231827.gg8...@bubble.grove.modra.org/
Alan Modra notes about BFD:

  The default linker emulation for an aarch64-linux ld.bfd is
  -maarch64linux, the default for an aarch64-elf linker is
  -maarch64elf.  They are not equivalent.  If you choose -maarch64elf
  you get an emulation that doesn't support -z relro.

Should LLD not set the RELRO program header when targeting -maarch64elf to
better match compatibility with GNU BFD?


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to