startstop.s 225 B

12345678910111213141516
  1. .weak __start_xx
  2. .weak __stop_xx
  3. .global _start
  4. _start:
  5. pld 3,__start_xx@got@pcrel
  6. pld 4,__stop_xx@got@pcrel
  7. .section xx,"a",unique,0
  8. .byte 0
  9. .section xx,"a",unique,1
  10. .byte 1
  11. .section xx,"a",unique,2
  12. .byte 2