diff options
author | Nick Clifton <nickc@redhat.com> | 2006-10-19 15:47:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-10-19 15:47:34 +0000 |
commit | b354976135880498dc76cb68e9ab47520205081b (patch) | |
tree | a6ac24d321c2f8f5c5b129f07e757cea61629e4e /include | |
parent | 6870500c0404a6501f0a21fdbca6ce2695c6ca0c (diff) | |
download | gdb-b354976135880498dc76cb68e9ab47520205081b.zip gdb-b354976135880498dc76cb68e9ab47520205081b.tar.gz gdb-b354976135880498dc76cb68e9ab47520205081b.tar.bz2 |
Fix score bugs
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/ChangeLog | 6 | ||||
-rw-r--r-- | include/elf/score.h | 19 |
2 files changed, 15 insertions, 10 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index c9914d9..c737b67 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,9 @@ +2006-10-19 Mei Ligang <ligang@sunnorth.com.cn> + + * score.h (EF_SCORE_PIC): Redefine EF_SCORE_PIC as 0x80000000. + (EF_SCORE_FIXDEP): Redefine EF_SCORE_FIXDEP as 0x40000000. + (EF_SCORE_HASENTRY): Delete. + 2006-09-17 Mei Ligang <ligang@sunnorth.com.cn> * score.h: New file. diff --git a/include/elf/score.h b/include/elf/score.h index 8eb69a7..ec3b32f 100644 --- a/include/elf/score.h +++ b/include/elf/score.h @@ -26,22 +26,21 @@ #include "elf/reloc-macros.h" #define SCORE_SIMULATOR_ACTIVE 1 -#define OPC_PTMASK 0xc0000000 /* Parity-bit Mask */ +#define OPC_PTMASK 0xc0000000 /* Parity-bit Mask. */ #define OPC16_PTMASK 0x00008000 /* The parity-bit denotes. */ -#define OPC_32 0xc0000000 /* denotes 32b instruction, (default) */ -#define OPC_16 0x00000000 /* denotes 16b instruction */ -#define OPC_PE 0x8000 /* denotes parallel-execution instructions */ -#define EF_SCORE_HASENTRY 0x02 +#define OPC_32 0xc0000000 /* Denotes 32b instruction, (default). */ +#define OPC_16 0x00000000 /* Denotes 16b instruction. */ +#define OPC_PE 0x8000 /* Denotes parallel-execution instructions. */ #define GP_DISP_LABEL "_gp_disp" -/* Processor specific flags for the ELF header e_flags field. */ - -/* Fix data dependency. */ -#define EF_SCORE_FIXDEP 0x00000001 +/* Processor specific flags for the ELF header e_flags field: */ /* File contains position independent code. */ -#define EF_SCORE_PIC 0x00000002 +#define EF_SCORE_PIC 0x80000000 + +/* Fix data dependency. */ +#define EF_SCORE_FIXDEP 0x40000000 /* Defined and allocated common symbol. Value is virtual address. If relocated, alignment must be preserved. */ |