~ubuntu-branches/debian/sid/upx-ucl/sid

« back to all changes in this revision

Viewing changes to src/stub/l_lx_elf64amd.lds

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2006-06-13 21:23:23 UTC
  • mfrom: (1.3.1 upstream) (3.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060613212323-343yzs4jt6vr5483
* New upstream version.
* Standards-Version: 3.7.2 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* l_lx_elf64amd.lds -- static linker script to build l_lx_elf64amd.bin
 
2
 
 
3
   This file is part of the UPX executable compressor.
 
4
 
 
5
   Copyright (C) 2000-2005 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
   <mfx@users.sourceforge.net>          <ml1050@users.sourceforge.net>
 
25
 
 
26
   John F. Reiser
 
27
   <jreiser@users.sourceforge.net>
 
28
 */
 
29
 
 
30
 
 
31
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
 
32
OUTPUT_ARCH(i386:x86-64)
 
33
/*ENTRY(_start)*/
 
34
PHDRS
 
35
{
 
36
    text PT_LOAD FILEHDR PHDRS FLAGS ( 5 ) ;  /* r-x (no -w-) */
 
37
    data PT_LOAD ;  /* for setting brk(0) */
 
38
}
 
39
SECTIONS
 
40
{
 
41
  . = 0x00100000 + SIZEOF_HEADERS + 12;  /* 12==sizeof(l_info) */
 
42
  .text : {
 
43
    *(.text)
 
44
    *(.data)
 
45
  } : text
 
46
  .data : {
 
47
  } : data
 
48
}