< prev index next >
src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/elf/Elf.java
Print this page
rev 49736 : 8185505: AArch64: Port AOT to AArch64
Reviewed-by: duke
*** 1,7 ****
/*
! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,8 ----
/*
! * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2018, Red Hat Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 206,221 ****
--- 207,236 ----
static int totalsize = 16;
/**
* Relocation types
*/
+
static final int R_X86_64_NONE = 0x0;
static final int R_X86_64_64 = 0x1;
static final int R_X86_64_PC32 = 0x2;
static final int R_X86_64_PLT32 = 0x4;
static final int R_X86_64_GOTPCREL = 0x9;
+ static final int R_AARCH64_NONE = 256;
+ static final int R_AARCH64_ABS64 = 257;
+ static final int R_AARCH64_CALL26 = 283;
+ static final int R_AARCH64_ADR_GOT_PAGE = 311;
+ static final int R_AARCH64_LD64_GOT_LO12_NC = 312;
+
+ static final int R_AARCH64_MOVW_UABS_G0_NC = 264;
+ static final int R_AARCH64_MOVW_UABS_G1_NC = 266;
+ static final int R_AARCH64_MOVW_UABS_G2_NC = 268;
+
+ static final int R_AARCH64_ADR_PREL_PG_HI21 = 275;
+ static final int R_AARCH64_ADD_ABS_LO12_NC = 277;
+ static final int R_AARCH64_LDST64_ABS_LO12_NC = 286;
}
/**
* Elf64_Rela structure defines
*/
*** 238,247 ****
--- 253,276 ----
static final int R_X86_64_64 = 0x1;
static final int R_X86_64_PC32 = 0x2;
static final int R_X86_64_PLT32 = 0x4;
static final int R_X86_64_GOTPCREL = 0x9;
+ static final int R_AARCH64_NONE = 256;
+ static final int R_AARCH64_ABS64 = 257;
+ static final int R_AARCH64_CALL26 = 283;
+ static final int R_AARCH64_ADR_GOT_PAGE = 311;
+ static final int R_AARCH64_LD64_GOT_LO12_NC = 312;
+
+ static final int R_AARCH64_MOVW_UABS_G0_NC = 264;
+ static final int R_AARCH64_MOVW_UABS_G1_NC = 266;
+ static final int R_AARCH64_MOVW_UABS_G2_NC = 268;
+
+ static final int R_AARCH64_ADR_PREL_PG_HI21 = 275;
+ static final int R_AARCH64_ADD_ABS_LO12_NC = 277;
+ static final int R_AARCH64_LDST64_ABS_LO12_NC = 286;
+
static long ELF64_R_INFO(int symidx, int type) {
return (((long)symidx << 32) + type);
}
}
< prev index next >