616
618
/* Keep this the last entry. */
617
619
#define R_ARM_NUM 256
621
/* ARM Aarch64 relocation types */
622
#define R_AARCH64_NONE 256 /* also accepts R_ARM_NONE (0) */
623
/* static data relocations */
624
#define R_AARCH64_ABS64 257
625
#define R_AARCH64_ABS32 258
626
#define R_AARCH64_ABS16 259
627
#define R_AARCH64_PREL64 260
628
#define R_AARCH64_PREL32 261
629
#define R_AARCH64_PREL16 262
630
/* static aarch64 group relocations */
631
/* group relocs to create unsigned data value or address inline */
632
#define R_AARCH64_MOVW_UABS_G0 263
633
#define R_AARCH64_MOVW_UABS_G0_NC 264
634
#define R_AARCH64_MOVW_UABS_G1 265
635
#define R_AARCH64_MOVW_UABS_G1_NC 266
636
#define R_AARCH64_MOVW_UABS_G2 267
637
#define R_AARCH64_MOVW_UABS_G2_NC 268
638
#define R_AARCH64_MOVW_UABS_G3 269
639
/* group relocs to create signed data or offset value inline */
640
#define R_AARCH64_MOVW_SABS_G0 270
641
#define R_AARCH64_MOVW_SABS_G1 271
642
#define R_AARCH64_MOVW_SABS_G2 272
643
/* relocs to generate 19, 21, and 33 bit PC-relative addresses */
644
#define R_AARCH64_LD_PREL_LO19 273
645
#define R_AARCH64_ADR_PREL_LO21 274
646
#define R_AARCH64_ADR_PREL_PG_HI21 275
647
#define R_AARCH64_ADR_PREL_PG_HI21_NC 276
648
#define R_AARCH64_ADD_ABS_LO12_NC 277
649
#define R_AARCH64_LDST8_ABS_LO12_NC 278
650
#define R_AARCH64_LDST16_ABS_LO12_NC 284
651
#define R_AARCH64_LDST32_ABS_LO12_NC 285
652
#define R_AARCH64_LDST64_ABS_LO12_NC 286
653
#define R_AARCH64_LDST128_ABS_LO12_NC 299
654
/* relocs for control-flow - all offsets as multiple of 4 */
655
#define R_AARCH64_TSTBR14 279
656
#define R_AARCH64_CONDBR19 280
657
#define R_AARCH64_JUMP26 282
658
#define R_AARCH64_CALL26 283
659
/* group relocs to create pc-relative offset inline */
660
#define R_AARCH64_MOVW_PREL_G0 287
661
#define R_AARCH64_MOVW_PREL_G0_NC 288
662
#define R_AARCH64_MOVW_PREL_G1 289
663
#define R_AARCH64_MOVW_PREL_G1_NC 290
664
#define R_AARCH64_MOVW_PREL_G2 291
665
#define R_AARCH64_MOVW_PREL_G2_NC 292
666
#define R_AARCH64_MOVW_PREL_G3 293
667
/* group relocs to create a GOT-relative offset inline */
668
#define R_AARCH64_MOVW_GOTOFF_G0 300
669
#define R_AARCH64_MOVW_GOTOFF_G0_NC 301
670
#define R_AARCH64_MOVW_GOTOFF_G1 302
671
#define R_AARCH64_MOVW_GOTOFF_G1_NC 303
672
#define R_AARCH64_MOVW_GOTOFF_G2 304
673
#define R_AARCH64_MOVW_GOTOFF_G2_NC 305
674
#define R_AARCH64_MOVW_GOTOFF_G3 306
675
/* GOT-relative data relocs */
676
#define R_AARCH64_GOTREL64 307
677
#define R_AARCH64_GOTREL32 308
678
/* GOT-relative instr relocs */
679
#define R_AARCH64_GOT_LD_PREL19 309
680
#define R_AARCH64_LD64_GOTOFF_LO15 310
681
#define R_AARCH64_ADR_GOT_PAGE 311
682
#define R_AARCH64_LD64_GOT_LO12_NC 312
683
#define R_AARCH64_LD64_GOTPAGE_LO15 313
684
/* General Dynamic TLS relocations */
685
#define R_AARCH64_TLSGD_ADR_PREL21 512
686
#define R_AARCH64_TLSGD_ADR_PAGE21 513
687
#define R_AARCH64_TLSGD_ADD_LO12_NC 514
688
#define R_AARCH64_TLSGD_MOVW_G1 515
689
#define R_AARCH64_TLSGD_MOVW_G0_NC 516
690
/* Local Dynamic TLS relocations */
691
#define R_AARCH64_TLSLD_ADR_PREL21 517
692
#define R_AARCH64_TLSLD_ADR_PAGE21 518
693
#define R_AARCH64_TLSLD_ADD_LO12_NC 519
694
#define R_AARCH64_TLSLD_MOVW_G1 520
695
#define R_AARCH64_TLSLD_MOVW_G0_NC 521
696
#define R_AARCH64_TLSLD_LD_PREL19 522
697
#define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523
698
#define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524
699
#define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525
700
#define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526
701
#define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527
702
#define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528
703
#define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529
704
#define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530
705
#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12 531
706
#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC 532
707
#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12 533
708
#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC 534
709
#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12 535
710
#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC 536
711
#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12 537
712
#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC 538
713
/* initial exec TLS relocations */
714
#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 539
715
#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 540
716
#define R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 541
717
#define R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 542
718
#define R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 543
719
/* local exec TLS relocations */
720
#define R_AARCH64_TLSLE_MOVW_TPREL_G2 544
721
#define R_AARCH64_TLSLE_MOVW_TPREL_G1 545
722
#define R_AARCH64_TLSLE_MOVW_TPREL_G1_NC 546
723
#define R_AARCH64_TLSLE_MOVW_TPREL_G0 547
724
#define R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 548
725
#define R_AARCH64_TLSLE_ADD_TPREL_HI12 549
726
#define R_AARCH64_TLSLE_ADD_TPREL_LO12 550
727
#define R_AARCH64_TLSLE_ADD_TPREL_LO12_NC 551
728
#define R_AARCH64_TLSLE_LDST8_TPREL_LO12 552
729
#define R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC 553
730
#define R_AARCH64_TLSLE_LDST16_TPREL_LO12 554
731
#define R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC 555
732
#define R_AARCH64_TLSLE_LDST32_TPREL_LO12 556
733
#define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557
734
#define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558
735
#define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559
736
/* Dynamic Relocations */
737
#define R_AARCH64_COPY 1024
738
#define R_AARCH64_GLOB_DAT 1025
739
#define R_AARCH64_JUMP_SLOT 1026
740
#define R_AARCH64_RELATIVE 1027
741
#define R_AARCH64_TLS_DTPREL64 1028
742
#define R_AARCH64_TLS_DTPMOD64 1029
743
#define R_AARCH64_TLS_TPREL64 1030
744
#define R_AARCH64_TLS_DTPREL32 1031
745
#define R_AARCH64_TLS_DTPMOD32 1032
746
#define R_AARCH64_TLS_TPREL32 1033
619
748
/* s390 relocations defined by the ABIs */
620
749
#define R_390_NONE 0 /* No reloc. */
621
750
#define R_390_8 1 /* Direct 8 bit. */