Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | ifdef MOZ_THUMB2 #{ |
michael@0 | 6 | # The syscall number is passed through r7 in the linux ARM ABI, but r7 |
michael@0 | 7 | # is also the THUMB frame pointer. (Unfortunate, but ah well.) gcc |
michael@0 | 8 | # complains if we store to r7, not unreasonably, but complains |
michael@0 | 9 | # inconsistently. The generic syscall template pushes/stores to/pops |
michael@0 | 10 | # r7 with no complaint from gcc, but the sys_clone() function marks r7 |
michael@0 | 11 | # as a clobbered register yet gcc error's. The generated assembly for |
michael@0 | 12 | # sys_clone() looks OK, so we chalk this up to a gcc/gas quirk and |
michael@0 | 13 | # work around it by telling gcc that the THUMB frame pointer is a |
michael@0 | 14 | # vanilla callee-save register. |
michael@0 | 15 | OS_CXXFLAGS += -fomit-frame-pointer |
michael@0 | 16 | MOZ_FRAMEPTR_FLAGS := -fomit-frame-pointer |
michael@0 | 17 | endif #} |