[llvm-bugs] [Bug 45217] New: unknown argument '--change-section-address'

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 16 13:31:45 PDT 2020


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

            Bug ID: 45217
           Summary: unknown argument '--change-section-address'
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objcopy/strip
          Assignee: unassignedbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: alexander.v.shaposhnikov at gmail.com,
                    jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, rupprecht at google.com
            Blocks: 4068

The Linux kernel has a custom debug format for eBPF (IIUC) called BTF.  It
looks like it's making use of GNU objcopy's `--change-section-address` to set
the section address to `0`:

https://github.com/ClangBuiltLinux/linux/commit/df786c9b947639aedbc7bb44b5dae2a7824af360

It doesn't look like there's any non-default linker script being used, so I'm
not sure we could avoid this with a linker script.


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200316/7540cc44/attachment.html>


More information about the llvm-bugs mailing list