[llvm-bugs] [Bug 30475] New: Regression(280836:281889): boringssl no longer links on arm

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 21 07:45:38 PDT 2016


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

            Bug ID: 30475
           Summary: Regression(280836:281889): boringssl no longer links
                    on arm
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Here's a reduced repro:

thakis at thakis:~/src/chrome/src$ cat test.c

struct tm { int    tm_sec; };

int asn1_generalizedtime_to_tm(struct tm *tm, int l, char* a)
{
    static const int max[9] = { 99, 99, 12, 31, 23, 59, 59, 12, 59 };
    int n, i, o;

    o = 0;
    for (i = 0; i < 7; i++) {
        if (i == 6) {
            i++;
            if (tm)
                tm->tm_sec = 0;
        }
        n = a[i] - '0';

        if (n > max[i])
            break;
    }
    return (0);
}
thakis at thakis:~/src/chrome/src$
third_party/llvm-build/Release+Asserts/bin/clang --target=arm-linux-androideabi
-Os -g2 -c test.c -o test.othakis at thakis:~/src/chrome/src$
third_party/llvm-build/Release+Asserts/bin/clang++ -shared
--gcc-toolchain=third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
--target=arm-linux-androideabi
--sysroot=third_party/android_tools/ndk/platforms/android-16/arch-arm -o
test.so test.o -Wl,-z,defs
test.o(.debug_info+0x48): error: undefined reference to
'asn1_generalizedtime_to_tm.max'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
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/20160921/bf80074b/attachment-0001.html>


More information about the llvm-bugs mailing list