2002-06-06 10:03:38 +00:00
|
|
|
PHDRS
|
|
|
|
{
|
2002-06-07 10:30:56 +00:00
|
|
|
Foo PT_LOAD ;
|
|
|
|
Bar PT_LOAD ;
|
2002-06-06 10:03:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x800000 - 1;
|
2002-06-07 10:30:56 +00:00
|
|
|
/* The PHDRS generated should start at the aligned .foo section
|
2002-06-06 10:03:38 +00:00
|
|
|
address, not the unaligned .empty section address */
|
|
|
|
.empty : {
|
|
|
|
EMPTY_START = ABSOLUTE(.) ;
|
|
|
|
*(.empty)
|
|
|
|
EMPTY_END = ABSOLUTE(.) ;
|
2002-06-07 10:30:56 +00:00
|
|
|
} : Foo
|
|
|
|
.foo : { *(.foo) } : Foo
|
|
|
|
.bar : { *(.bar)
|
2002-06-06 10:03:38 +00:00
|
|
|
LONG(EMPTY_START) ;
|
2002-06-07 10:30:56 +00:00
|
|
|
} : Bar
|
2002-06-06 10:03:38 +00:00
|
|
|
|
|
|
|
/DISCARD/ : { *(.*) }
|
|
|
|
}
|