[llvm-bugs] [Bug 43241] New: Regression(370635): " section '.text' cannot be removed because it is referenced by the section '.ARM.exidx'" when using llvm-objcopy --extract-partition

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 6 06:21:07 PDT 2019


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

            Bug ID: 43241
           Summary: Regression(370635): " section '.text' cannot be
                    removed because it is referenced by the section
                    '.ARM.exidx'" when using llvm-objcopy
                    --extract-partition
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

Grab --reproduce output:
https://drive.google.com/file/d/1m5fCTdnonSqdznHNrhmhtlnPXIVDk3q8/view?usp=sharing
(~600MB gzip)

This produces lib.unstripped/libchrome__combined.so which is then fed into
llvm-objcopy like so: ` ../../../../llvm-project/out/gn/bin/llvm-objcopy
--extract-partition libvr.so lib.unstripped/libchrome__combined.so`. That
errors out after r370635:

$ ../../../../llvm-project/out/gn/bin/llvm-objcopy --extract-partition libvr.so
lib.unstripped/libchrome__combined.so
../../../../llvm-project/out/gn/bin/llvm-objcopy: error:
'lib.unstripped/libchrome__combined.so': section '.text' cannot be removed
because it is referenced by the section '.ARM.exidx'


(Originally at https://crbug.com/1000647)

-- 
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/20190906/2e1474cc/attachment.html>


More information about the llvm-bugs mailing list