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