1/* armeb-linux.elf-fold.lds --
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("elf32-bigarm", "elf32-bigarm", "elf32-bigarm")
32OUTPUT_ARCH(arm)
33/*ENTRY(_start)*/
34PHDRS
35{
36    text PT_LOAD FILEHDR PHDRS ;
37    data PT_LOAD ;  /* for setting brk(0) */
38}
39SECTIONS
40{
41  /*  0x00004000: below 0x00008000 usual, enough to avoid icache sync */
42  . = 0x00008000 + SIZEOF_HEADERS + 12;  /* 12==sizeof(l_info) */
43  .text : {
44    *(.text)
45    *(.data)
46  } : text
47  .data : {
48  } : data
49}
50