summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2012-12-15 21:24:31 +0000
committerandrew <andrew@FreeBSD.org>2012-12-15 21:24:31 +0000
commitebd063486fc717748793e6a0a99efa40f170f19b (patch)
treee397f1a3f7d20e598ce1e878c7d82fc83b7933b0 /gnu/usr.bin
parent20e1774582916800a1d85e6877886ecc1e9e51af (diff)
downloadFreeBSD-src-ebd063486fc717748793e6a0a99efa40f170f19b.zip
FreeBSD-src-ebd063486fc717748793e6a0a99efa40f170f19b.tar.gz
Don't define CTORS_SECTION_ASM_OP and DTORS_SECTION_ASM_OP on arm when
built with clang. When these are defined the lists are defined similar to: asm(".section .ctors"); STATIC func_ptr __CTOR_LIST__[1] = { (func_ptr) (-1) }; asm(".section .dtors"); STATIC func_ptr __DTOR_LIST__[1] = { (func_ptr) (-1) }; The problem is clang will move the two arrays out of the .ctors and .dtors sections causing these sections to contain a single null address. By not defining these macros we use the version of the code that places the arrays is their sections by using __attribute__((section(".ctors"))) and similar for .dtors. Submitted by: Daisuke Aoyama <aoyama AT peach.ne.jp>
Diffstat (limited to 'gnu/usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud