From 4271799d2f48ac20cd1cfe21f16b19080b084384 Mon Sep 17 00:00:00 2001 From: nickc Date: Wed, 7 May 2003 15:12:32 +0000 Subject: [PATCH] Update to include R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and R_XSTORMY16_12 relocs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66563 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/stormy16/stormy-abi | 42 +++++++++++++++++++++++++++--------------- 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09c1efa8b21..3ecceb27e76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-05-07 Nick Clifton + + * config/stormy16/stormy-abi: Update to include + R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and + R_XSTORMY16_12 relocs. + 2003-05-07 Alan Modra * function.c (assign_parms): Correct reversed reg_parm_stack_space diff --git a/gcc/config/stormy16/stormy-abi b/gcc/config/stormy16/stormy-abi index 23eaa7b6321..e84b0b917cc 100644 --- a/gcc/config/stormy16/stormy-abi +++ b/gcc/config/stormy16/stormy-abi @@ -131,21 +131,21 @@ RELA relocs are used exclusively. The relocation types defined are: Name Value Field Calculation Overflow ---------------------------------------------------------------- -R_XSTORMY16_NONE 0 none none none -R_XSTORMY16_32 1 32 S + A none -R_XSTORMY16_16 2 16 S + A unsigned -R_XSTORMY16_8 3 8 S + A unsigned -R_XSTORMY16_PC32 4 32 S + A - P none -R_XSTORMY16_PC16 5 16 S + A - P signed -R_XSTORMY16_PC8 6 8 S + A - P signed -R_XSTORMY16_REL_12 7 16:12:0 S + A - P signed -R_XSTORMY16_24 8 32:23:1 (S + A) >> 1 unsigned -R_XSTORMY16_GNU_VTINHERIT 9 n/a n/a n/a -R_XSTORMY16_GNU_VTENTRY 10 n/a n/a n/a - -In the 'Calculation' column, 'S' is the value of the symbol to which -the reloc refers, 'A' is the addend, and 'P' represents the place of -the storage unit being relocated. +R_XSTORMY16_NONE 0 none none none +R_XSTORMY16_32 1 32 S + A none +R_XSTORMY16_16 2 16 S + A none +R_XSTORMY16_8 3 8 S + A unsigned +R_XSTORMY16_PC32 4 32 S + A - P none +R_XSTORMY16_PC16 5 16 S + A - P signed +R_XSTORMY16_PC8 6 8 S + A - P signed +R_XSTORMY16_REL_12 7 16:12:0 S + A - P signed +R_XSTORMY16_24 8 32:23:1 (S + A) >> 1 unsigned +R_XSTORMY16_FPTR16 9 16 S + A either +R_XSTORMY16_LO16 10 16 S + A none +R_XSTORMY16_HI16 11 32:16:16 S + A none +R_XSTORMY16_12 12 16:12:0 S + A signed +R_XSTORMY16_GNU_VTINHERIT 128 n/a n/a n/a +R_XSTORMY16_GNU_VTENTRY 129 n/a n/a n/a In the 'Field' column, the first number indicates whether the relocation refers to a byte, word or doubleword. The second number, @@ -153,3 +153,15 @@ if any, indicates the size of the bit-field into which the relocation is to occur (and also the size for overflow checking). The third number indicates the first bit of the bit-field in the word or doubleword, counting the LSB as bit 0. + +In the 'Calculation' column, 'S' is the value of the symbol to which +the reloc refers, 'A' is the addend, and 'P' represents the place of +the storage unit being relocated. + +In the 'Overflow' column, 'none' means that any overflow of the +computation perfomed in the 'Calculation' column is ignored. +'signed' means that the overflow is only reported if it happens when +the values are treated as signed quantities. 'unsigned' is the same, +except that the values are treated as unsigned qunatities. 'either' +means that overflow is reported for either signed or unsigned +overflow. -- 2.11.0