pcrelcp-1.s 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .symver x,expfn@TST2 ; .symver required to make @ part of name.
  2. .global _start
  3. .type _start,@function
  4. _start:
  5. .dword 0,0,0,0
  6. .reloc 0,R_CRIS_32_PCREL,expfn
  7. .reloc 4,R_CRIS_32_PCREL,expfn
  8. .reloc 8,R_CRIS_32_PCREL,x
  9. .reloc 12,R_CRIS_32_PCREL,x
  10. .Lfe3:
  11. .size _start,.Lfe3-_start
  12. .data
  13. .global tab1
  14. .type tab1,@object
  15. tab1:
  16. .dword 0,0,0,0,0,0,0,0
  17. .reloc 0,R_CRIS_32_PCREL,expfn
  18. .reloc 4,R_CRIS_32_PCREL,expfn
  19. .reloc 8,R_CRIS_32_PCREL,expfn
  20. .reloc 12,R_CRIS_32_PCREL,expfn
  21. .reloc 16,R_CRIS_32_PCREL,x
  22. .reloc 20,R_CRIS_32_PCREL,x
  23. .reloc 24,R_CRIS_32_PCREL,x
  24. .reloc 28,R_CRIS_32_PCREL,x
  25. .size tab1,.-tab1
  26. .section .data2,"aw",@progbits
  27. .global tab2
  28. .type tab2,@object
  29. tab2:
  30. .dword 0,0,0,0,0,0,0,0
  31. .dword 0,0,0,0,0,0,0,0
  32. .reloc 0,R_CRIS_32_PCREL,expfn
  33. .reloc 4,R_CRIS_32_PCREL,expfn
  34. .reloc 8,R_CRIS_32_PCREL,expfn
  35. .reloc 12,R_CRIS_32_PCREL,expfn
  36. .reloc 16,R_CRIS_32_PCREL,expfn
  37. .reloc 20,R_CRIS_32_PCREL,expfn
  38. .reloc 24,R_CRIS_32_PCREL,expfn
  39. .reloc 28,R_CRIS_32_PCREL,expfn
  40. .reloc 32,R_CRIS_32_PCREL,x
  41. .reloc 36,R_CRIS_32_PCREL,x
  42. .reloc 40,R_CRIS_32_PCREL,x
  43. .reloc 44,R_CRIS_32_PCREL,x
  44. .reloc 48,R_CRIS_32_PCREL,x
  45. .reloc 52,R_CRIS_32_PCREL,x
  46. .reloc 56,R_CRIS_32_PCREL,x
  47. .reloc 60,R_CRIS_32_PCREL,x
  48. .size tab1,.-tab2