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: unassignedb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: llvm-bugs@lists.llvm.org, peter.sm...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to