1/* arm64-linux.elf-fold.lds -- static linker script to build arm64-linux.elf-fold.bin
2
3   This file is part of the UPX executable compressor.
4
5   Copyright (C) 2000-2020 John F. Reiser
6   All Rights Reserved.
7
8   UPX and the UCL library are free software; you can redistribute them
9   and/or modify them under the terms of the GNU General Public License as
10   published by the Free Software Foundation; either version 2 of
11   the License, or (at your option) any later version.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with this program; see the file COPYING.
20   If not, write to the Free Software Foundation, Inc.,
21   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23   Markus F.X.J. Oberhumer              Laszlo Molnar
24   <markus@oberhumer.com>               <ezerotven+github@gmail.com>
25
26   John F. Reiser
27   <jreiser@users.sourceforge.net>
28 */
29
30
31OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64")
32OUTPUT_ARCH(aarch64)
33/*ENTRY(_start)*/
34PHDRS
35{
36    text PT_LOAD FILEHDR PHDRS FLAGS ( 5 ) ;  /* r-x (no -w-) */
37    data PT_LOAD ;  /* for setting brk(0) */
38}
39SECTIONS
40{
41  . = 0x00100000 + SIZEOF_HEADERS + 12;  /* 12==sizeof(l_info) */
42  .text : {
43    *(.text)
44    *(.data)
45  } : text
46  .data : {
47  } : data
48}
49