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

            Bug ID: 38303
           Summary: ARM_V4BX relocation is not supported
           Product: lld
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: mh+l...@glandium.org
                CC: llvm-bugs@lists.llvm.org

Building Firefox for Android with lld fails with multiple errors like:

/builds/worker/workspace/build/src/clang/bin/ld.lld: error: can't create
dynamic relocation R_ARM_V4BX against local symbol in readonly segment;
recompile object files with -fPIC
>>> defined in ../../gfx/cairo/libpixman/src/pixman-arm-neon-asm-bilinear.o
>>> referenced by 
>>> ../../gfx/cairo/libpixman/src/pixman-arm-neon-asm-bilinear.o:(.text+0x4F0)

which doesn't actually say it's not supported, but considering R_ARM_V4BX is
not an actual relocation, and wouldn't imply a dynamic text relocation if it
were supported, the error is actually bogus.

Linking with -z notext is more explicit:

/builds/worker/workspace/build/src/clang/bin/ld.lld: error:
../../gfx/cairo/libpixman/src/pixman-arm-neon-asm-bilinear.o:(.text+0x4F0):
unrecognized reloc 40

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to