summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2020-04-18 02:59:24 -0700
committerRyan Prichard <rprichard@google.com>2020-04-20 14:28:10 -0700
commita992a067019c79f0856824eadd9182df259ae0f2 (patch)
treec77aca245851b2e4bbdac89d5714b5e2316417e6 /libc/malloc_debug/tests/malloc_debug_system_tests.cpp
parent0361a4f8670a963c3724d78fbd8ec258b16a732b (diff)
x86: Switch get_pc_thunk to comdat
Switch the __x86.get_pc_thunk.{bx,cx} functions from .gnu.linkonce to comdat section groups. lld doesn't implement .gnu.linkonce and will instead discard the input sections. Currently, it might produce a faulty binary that has no get_pc_thunk function in it, which would crash. Normally, these functions are generated by GCC and are present in many object files compiled with PIC. Clang doesn't use them, and instead initializes the PIC base register with a "call 1f; 1: pop %ebx" pair. Bug: http://b/154376560 Bug: https://bugs.llvm.org/show_bug.cgi?id=45594 Test: bionic-unit-tests Change-Id: I3e4857aecdc281b32232270bff4880433e5b6afa
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_system_tests.cpp')
0 files changed, 0 insertions, 0 deletions