summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/note-3.t
blob: 13324ae5470a3bb960e8a31e0587f9f2535ae643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PHDRS
{
  text PT_LOAD FILEHDR PHDRS ;
  note PT_NOTE;
}
SECTIONS
{
  . = . + SIZEOF_HEADERS ;
  .text : { *(.text) *(.rodata) } :text
  .note : { *(.note) } :note :text

  /* BUG:  This linker script is broken here.  It has not reset the
     output segment for the following sections, so they are all
     treated as notes...   */
  
  .hash : { *(.hash) }
  
  .dynstr : { *(.dynstr) }
  .dynsym : { *(.dynsym) }
  .got.plt : { *(.got.plt) *(.igot.plt) }
  /DISCARD/ : { *(*) }
}