Skip to content

关于 breakpad 构建的一些疑问 #18

@ChanJLee

Description

@ChanJLee

您好,作者,我在查看breakpad makefile的时候,发现如下注释

breakpad/android/google_breakpad/Android.mk

# Breakpad uses inline ARM assembly that requires the library
# to be built in ARM mode. Otherwise, the build will fail with
# cryptic assembler messages like:
#   Compile++ thumb  : google_breakpad_client <= crash_generation_client.cc
#   /tmp/cc8aMSoD.s: Assembler messages:
#   /tmp/cc8aMSoD.s:132: Error: invalid immediate: 288 is out of range
#   /tmp/cc8aMSoD.s:244: Error: invalid immediate: 296 is out of range
LOCAL_ARM_MODE := arm

注释里提到因为内联了一些arm平台的汇编代码,所以必须在arm的模式下构建。那为啥我们可以正常编译出x86的so呢?

期待您的回复,感激不尽。

这是我找到的一点资料

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions