1/* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17#ifdef ARCH_ARM64 18#include <lk/asm.h> 19 20SECTION_GNU_NOTE_PROPERTY_AARCH64_FEATURES(GNU_NOTE_FEATURE_AARCH64_BTI) 21#endif 22 23 24.section .data 25 26.global version_test_app_v1_start, version_test_app_v1_end 27.hidden version_test_app_v1_start, version_test_app_v1_end 28.balign 4096 29version_test_app_v1_start: 30.incbin VERSION_TEST_APP_V1 31version_test_app_v1_end: 32 33.global version_test_app_v2_start, version_test_app_v2_end 34.hidden version_test_app_v2_start, version_test_app_v2_end 35.balign 4096 36version_test_app_v2_start: 37.incbin VERSION_TEST_APP_V2 38version_test_app_v2_end: 39 40.global version_test_app_v3_start, version_test_app_v3_end 41.hidden version_test_app_v3_start, version_test_app_v3_end 42.balign 4096 43version_test_app_v3_start: 44.incbin VERSION_TEST_APP_V3 45version_test_app_v3_end: 46 47.global mmio_test_app_allowed_start, mmio_test_app_allowed_end 48.hidden mmio_test_app_allowed_start, mmio_test_app_allowed_end 49.balign 4096 50mmio_test_app_allowed_start: 51.incbin MMIO_TEST_APP_ALLOWED 52mmio_test_app_allowed_end: 53 54.global mmio_test_app_bad_uuid_start, mmio_test_app_bad_uuid_end 55.hidden mmio_test_app_bad_uuid_start, mmio_test_app_bad_uuid_end 56.balign 4096 57mmio_test_app_bad_uuid_start: 58.incbin MMIO_TEST_APP_BAD_UUID 59mmio_test_app_bad_uuid_end: 60 61.global mmio_test_app_bad_range_low_start, mmio_test_app_bad_range_low_end 62.hidden mmio_test_app_bad_range_low_start, mmio_test_app_bad_range_low_end 63.balign 4096 64mmio_test_app_bad_range_low_start: 65.incbin MMIO_TEST_APP_BAD_RANGE_LOW 66mmio_test_app_bad_range_low_end: 67 68.global mmio_test_app_bad_range_high_start, mmio_test_app_bad_range_high_end 69.hidden mmio_test_app_bad_range_high_start, mmio_test_app_bad_range_high_end 70.balign 4096 71mmio_test_app_bad_range_high_start: 72.incbin MMIO_TEST_APP_BAD_RANGE_HIGH 73mmio_test_app_bad_range_high_end: 74 75.global encryption_test_app_encrypted_app_encryption_optional_start, encryption_test_app_encrypted_app_encryption_optional_end 76.hidden encryption_test_app_encrypted_app_encryption_optional_start, encryption_test_app_encrypted_app_encryption_optional_end 77.balign 4096 78encryption_test_app_encrypted_app_encryption_optional_start: 79.incbin ENCRYPTION_TEST_APP_ENCRYPTED_APP_ENCRYPTION_OPTIONAL 80encryption_test_app_encrypted_app_encryption_optional_end: 81 82.global encryption_test_app_encrypted_app_encryption_required_start, encryption_test_app_encrypted_app_encryption_required_end 83.hidden encryption_test_app_encrypted_app_encryption_required_start, encryption_test_app_encrypted_app_encryption_required_end 84.balign 4096 85encryption_test_app_encrypted_app_encryption_required_start: 86.incbin ENCRYPTION_TEST_APP_ENCRYPTED_APP_ENCRYPTION_REQUIRED 87encryption_test_app_encrypted_app_encryption_required_end: 88 89.global encryption_test_app_unencrypted_app_encryption_optional_start, encryption_test_app_unencrypted_app_encryption_optional_end 90.hidden encryption_test_app_unencrypted_app_encryption_optional_start, encryption_test_app_unencrypted_app_encryption_optional_end 91.balign 4096 92encryption_test_app_unencrypted_app_encryption_optional_start: 93.incbin ENCRYPTION_TEST_APP_UNENCRYPTED_APP_ENCRYPTION_OPTIONAL 94encryption_test_app_unencrypted_app_encryption_optional_end: 95 96.global encryption_test_app_unencrypted_app_encryption_required_start, encryption_test_app_unencrypted_app_encryption_required_end 97.hidden encryption_test_app_unencrypted_app_encryption_required_start, encryption_test_app_unencrypted_app_encryption_required_end 98.balign 4096 99encryption_test_app_unencrypted_app_encryption_required_start: 100.incbin ENCRYPTION_TEST_APP_UNENCRYPTED_APP_ENCRYPTION_REQUIRED 101encryption_test_app_unencrypted_app_encryption_required_end: 102