~terry.guo/+junk/xbinutils

« back to all changes in this revision

Viewing changes to src/binutils/ld/testsuite/ld-scripts/phdrs2.t

  • Committer: Terry Guo
  • Date: 2012-09-05 06:50:40 UTC
  • Revision ID: terry.guo@arm.com-20120905065040-430c6mhm9b11a6r6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PHDRS
 
2
{
 
3
  Foo PT_LOAD ;
 
4
  Bar PT_LOAD ;
 
5
}
 
6
 
 
7
SECTIONS
 
8
{
 
9
  . = 0x800000 - 1;
 
10
  /* The PHDRS generated should start at the aligned .foo section
 
11
     address, not the unaligned .empty section address */
 
12
  .empty : { 
 
13
        EMPTY_START = ABSOLUTE(.) ;
 
14
        *(.empty) 
 
15
        EMPTY_END = ABSOLUTE(.) ;
 
16
        } : Foo
 
17
  .foo : { *(.foo) } : Foo
 
18
  .bar : { *(.bar)
 
19
        LONG(EMPTY_START) ;
 
20
         } : Bar
 
21
        
 
22
  /DISCARD/ : { *(.*) }
 
23
}