/* pe-mips.pk -- PE COFF implementation for GNU poke, MIPS.  */

/* Copyright (C) 2022, 2023 Jose E. Marchesi.  */

/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* MIPS PE based relocations.  */

var PE_MIPS_R_BASED_JMPADDR = 0x05UN,
    PE_MIPS_R_BASED_JMPADDR16 = 0x09UN;

/* MIPS PE relocation.  */

var PE_MIPS_R_ABSOLUTE = 0x0000UH,
    PE_MIPS_R_REFHALF = 0x0001UH,
    PE_MIPS_R_REFWORD = 0x0002UH,
    PE_MIPS_R_JMPADDR = 0x0003UH,
    PE_MIPS_R_REFHI = 0x0004UH,
    PE_MIPS_R_REFLO = 0x0005UH,
    PE_MIPS_R_GPREL = 0x0006UH,
    PE_MIPS_R_LITERAL = 0x0007UH,
    PE_MIPS_R_SECTION = 0x000AUH,
    PE_MIPS_R_SECREL = 0x000BUH,
    PE_MIPS_R_SECRELLO = 0x000CUH,
    PE_MIPS_R_SECRELHI = 0x000DUH,
    PE_MIPS_R_JMPADDR16 = 0x0010UH,
    PE_MIPS_R_REFWORDNB = 0x0022UH,
    PE_MIPS_R_PAIR = 0x0025UH;
