projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-nds32.c
diff --git
a/bfd/elf32-nds32.c
b/bfd/elf32-nds32.c
index f6a89a78834a962fb60c332053a42283f799deda..5eb029524df201af777c28a3732b0161168b5f8b 100644
(file)
--- a/
bfd/elf32-nds32.c
+++ b/
bfd/elf32-nds32.c
@@
-62,14
+62,14
@@
static bfd_reloc_status_type nds32_elf_do_9_pcrel_reloc
static bfd_vma calculate_memory_address
(bfd *, Elf_Internal_Rela *, Elf_Internal_Sym *, Elf_Internal_Shdr *);
static int nds32_get_section_contents (bfd *, asection *,
static bfd_vma calculate_memory_address
(bfd *, Elf_Internal_Rela *, Elf_Internal_Sym *, Elf_Internal_Shdr *);
static int nds32_get_section_contents (bfd *, asection *,
- bfd_byte **, b
fd_boolean
);
+ bfd_byte **, b
ool
);
static int nds32_get_local_syms (bfd *, asection *ATTRIBUTE_UNUSED,
Elf_Internal_Sym **);
static int nds32_get_local_syms (bfd *, asection *ATTRIBUTE_UNUSED,
Elf_Internal_Sym **);
-static b
fd_boolean
nds32_relax_fp_as_gp
+static b
ool
nds32_relax_fp_as_gp
(struct bfd_link_info *link_info, bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs, Elf_Internal_Rela *irelend,
Elf_Internal_Sym *isymbuf);
(struct bfd_link_info *link_info, bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs, Elf_Internal_Rela *irelend,
Elf_Internal_Sym *isymbuf);
-static b
fd_boolean
nds32_fag_remove_unused_fpbase
+static b
ool
nds32_fag_remove_unused_fpbase
(bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs,
Elf_Internal_Rela *irelend);
(bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs,
Elf_Internal_Rela *irelend);
@@
-253,7
+253,7
@@
struct elf_nds32_obj_tdata
#define elf32_nds32_relax_group_ptr(bfd) \
&(elf_nds32_tdata (bfd)->relax_group)
#define elf32_nds32_relax_group_ptr(bfd) \
&(elf_nds32_tdata (bfd)->relax_group)
-static b
fd_boolean
+static b
ool
nds32_elf_mkobject (bfd *abfd)
{
return bfd_elf_allocate_object (abfd, sizeof (struct elf_nds32_obj_tdata),
nds32_elf_mkobject (bfd *abfd)
{
return bfd_elf_allocate_object (abfd, sizeof (struct elf_nds32_obj_tdata),
@@
-275,60
+275,60
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_NONE", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_NONE", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
0, /* src_mask */
0, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 16 bit absolute relocation. */
HOWTO2 (R_NDS32_16, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* A 16 bit absolute relocation. */
HOWTO2 (R_NDS32_16, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
nds32_elf_generic_reloc,/* special_function */
"R_NDS32_16", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
nds32_elf_generic_reloc,/* special_function */
"R_NDS32_16", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 32 bit absolute relocation. */
HOWTO2 (R_NDS32_32, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* A 32 bit absolute relocation. */
HOWTO2 (R_NDS32_32, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
nds32_elf_generic_reloc,/* special_function */
"R_NDS32_32", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
nds32_elf_generic_reloc,/* special_function */
"R_NDS32_32", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 20 bit address. */
HOWTO2 (R_NDS32_20, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* A 20 bit address. */
HOWTO2 (R_NDS32_20, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
nds32_elf_generic_reloc,/* special_function */
"R_NDS32_20", /* name */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
nds32_elf_generic_reloc,/* special_function */
"R_NDS32_20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* An PC Relative 9-bit relocation, shifted by 2.
This reloc is complicated because relocations are relative to pc & -4.
/* An PC Relative 9-bit relocation, shifted by 2.
This reloc is complicated because relocations are relative to pc & -4.
@@
-342,45
+342,45
@@
static reloc_howto_type nds32_elf_howto_table[] =
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_9_pcrel_reloc,/* special_function */
"R_NDS32_9_PCREL", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_9_pcrel_reloc,/* special_function */
"R_NDS32_9_PCREL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xff, /* src_mask */
0xff, /* dst_mask */
0xff, /* src_mask */
0xff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative 15 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_15_PCREL, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
14, /* bitsize */
/* A relative 15 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_15_PCREL, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
14, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_15_PCREL", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_15_PCREL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x3fff, /* src_mask */
0x3fff, /* dst_mask */
0x3fff, /* src_mask */
0x3fff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative 17 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_17_PCREL, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* A relative 17 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_17_PCREL, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_17_PCREL", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_17_PCREL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative 25 bit relocation, right shifted by 1. */
/* It's not clear whether this should have partial_inplace set or not.
/* A relative 25 bit relocation, right shifted by 1. */
/* It's not clear whether this should have partial_inplace set or not.
@@
-391,447
+391,447
@@
static reloc_howto_type nds32_elf_howto_table[] =
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_PCREL", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_PCREL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* High 20 bits of address when lower 12 is or'd in. */
HOWTO2 (R_NDS32_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* High 20 bits of address when lower 12 is or'd in. */
HOWTO2 (R_NDS32_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_hi20_reloc, /* special_function */
"R_NDS32_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_hi20_reloc, /* special_function */
"R_NDS32_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S3, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S3, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S3", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S3", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000001ff, /* src_mask */
0x000001ff, /* dst_mask */
0x000001ff, /* src_mask */
0x000001ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S2", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S2", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S1, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
11, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S1, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
11, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S1", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S1", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000007ff, /* src_mask */
0x000007ff, /* dst_mask */
0x000007ff, /* src_mask */
0x000007ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S0, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S0, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S0", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_LO12S0", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S3, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S3, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S3", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S3", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S2, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S2, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S2", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S2", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S1, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S1, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S1", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S1", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S0, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S0, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S0", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
nds32_elf_sda15_reloc, /* special_function */
"R_NDS32_SDA15S0", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* GNU extension to record C++ vtable hierarchy */
HOWTO2 (R_NDS32_GNU_VTINHERIT,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
/* GNU extension to record C++ vtable hierarchy */
HOWTO2 (R_NDS32_GNU_VTINHERIT,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
NULL, /* special_function */
"R_NDS32_GNU_VTINHERIT",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
NULL, /* special_function */
"R_NDS32_GNU_VTINHERIT",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
0, /* src_mask */
0, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* GNU extension to record C++ vtable member usage */
HOWTO2 (R_NDS32_GNU_VTENTRY, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
/* GNU extension to record C++ vtable member usage */
HOWTO2 (R_NDS32_GNU_VTENTRY, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
_bfd_elf_rel_vtable_reloc_fn,/* special_function */
"R_NDS32_GNU_VTENTRY", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
_bfd_elf_rel_vtable_reloc_fn,/* special_function */
"R_NDS32_GNU_VTENTRY", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
0, /* src_mask */
0, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 16 bit absolute relocation. */
HOWTO2 (R_NDS32_16_RELA, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* A 16 bit absolute relocation. */
HOWTO2 (R_NDS32_16_RELA, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_16_RELA", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_16_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 32 bit absolute relocation. */
HOWTO2 (R_NDS32_32_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* A 32 bit absolute relocation. */
HOWTO2 (R_NDS32_32_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_32_RELA", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_32_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 20 bit address. */
HOWTO2 (R_NDS32_20_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* A 20 bit address. */
HOWTO2 (R_NDS32_20_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_20_RELA", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_20_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_9_PCREL_RELA, /* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
HOWTO2 (R_NDS32_9_PCREL_RELA, /* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_9_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_9_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xff, /* src_mask */
0xff, /* dst_mask */
0xff, /* src_mask */
0xff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative 15 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_15_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
14, /* bitsize */
/* A relative 15 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_15_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
14, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_15_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_15_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x3fff, /* src_mask */
0x3fff, /* dst_mask */
0x3fff, /* src_mask */
0x3fff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative 17 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_17_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* A relative 17 bit relocation, right shifted by 1. */
HOWTO2 (R_NDS32_17_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_17_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_17_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative 25 bit relocation, right shifted by 2. */
HOWTO2 (R_NDS32_25_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
/* A relative 25 bit relocation, right shifted by 2. */
HOWTO2 (R_NDS32_25_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* High 20 bits of address when lower 16 is or'd in. */
HOWTO2 (R_NDS32_HI20_RELA, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* High 20 bits of address when lower 16 is or'd in. */
HOWTO2 (R_NDS32_HI20_RELA, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_HI20_RELA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_HI20_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S3_RELA, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S3_RELA, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S3_RELA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S3_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000001ff, /* src_mask */
0x000001ff, /* dst_mask */
0x000001ff, /* src_mask */
0x000001ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S2_RELA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S2_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S1_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
11, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S1_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
11, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S1_RELA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S1_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000007ff, /* src_mask */
0x000007ff, /* dst_mask */
0x000007ff, /* src_mask */
0x000007ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S0_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S0_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S0_RELA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S0_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S3_RELA, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S3_RELA, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S3_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S3_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA15S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S2_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S2_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_SDA15S1_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_SDA15S1_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S1_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S1_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_SDA15S0_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_SDA15S0_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S0_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA15S0_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* GNU extension to record C++ vtable hierarchy */
HOWTO2 (R_NDS32_RELA_GNU_VTINHERIT,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
/* GNU extension to record C++ vtable hierarchy */
HOWTO2 (R_NDS32_RELA_GNU_VTINHERIT,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
NULL, /* special_function */
"R_NDS32_RELA_GNU_VTINHERIT",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
NULL, /* special_function */
"R_NDS32_RELA_GNU_VTINHERIT",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
0, /* src_mask */
0, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* GNU extension to record C++ vtable member usage */
HOWTO2 (R_NDS32_RELA_GNU_VTENTRY,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
/* GNU extension to record C++ vtable member usage */
HOWTO2 (R_NDS32_RELA_GNU_VTENTRY,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
_bfd_elf_rel_vtable_reloc_fn,/* special_function */
"R_NDS32_RELA_GNU_VTENTRY",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
_bfd_elf_rel_vtable_reloc_fn,/* special_function */
"R_NDS32_RELA_GNU_VTENTRY",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
0, /* src_mask */
0, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Like R_NDS32_20, but referring to the GOT table entry for
the symbol. */
/* Like R_NDS32_20, but referring to the GOT table entry for
the symbol. */
@@
-839,15
+839,15
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT20", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Like R_NDS32_PCREL, but referring to the procedure linkage table
entry for the symbol. */
/* Like R_NDS32_PCREL, but referring to the procedure linkage table
entry for the symbol. */
@@
-855,15
+855,15
@@
static reloc_howto_type nds32_elf_howto_table[] =
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_PLTREL", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_PLTREL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* This is used only by the dynamic linker. The symbol should exist
both in the object being run and in some shared library. The
/* This is used only by the dynamic linker. The symbol should exist
both in the object being run and in some shared library. The
@@
-874,15
+874,15
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_COPY", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_COPY", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Like R_NDS32_20, but used when setting global offset table
entries. */
/* Like R_NDS32_20, but used when setting global offset table
entries. */
@@
-890,30
+890,30
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GLOB_DAT", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GLOB_DAT", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Marks a procedure linkage table entry for a symbol. */
HOWTO2 (R_NDS32_JMP_SLOT, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Marks a procedure linkage table entry for a symbol. */
HOWTO2 (R_NDS32_JMP_SLOT, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_JMP_SLOT", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_JMP_SLOT", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Used only by the dynamic linker. When the object is run, this
longword is set to the load address of the object, plus the
/* Used only by the dynamic linker. When the object is run, this
longword is set to the load address of the object, plus the
@@
-922,29
+922,29
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_RELATIVE", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_RELATIVE", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOTOFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
HOWTO2 (R_NDS32_GOTOFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* An PC Relative 20-bit relocation used when setting PIC offset
table register. */
/* An PC Relative 20-bit relocation used when setting PIC offset
table register. */
@@
-952,15
+952,15
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTPC20", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTPC20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* Like R_NDS32_HI20, but referring to the GOT table entry for
the symbol. */
/* Like R_NDS32_HI20, but referring to the GOT table entry for
the symbol. */
@@
-968,28
+968,28
@@
static reloc_howto_type nds32_elf_howto_table[] =
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOT_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
HOWTO2 (R_NDS32_GOT_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_LO12", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_LO12", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* An PC Relative relocation used when setting PIC offset table register.
Like R_NDS32_HI20, but referring to the GOT table entry for
/* An PC Relative relocation used when setting PIC offset table register.
Like R_NDS32_HI20, but referring to the GOT table entry for
@@
-998,55
+998,55
@@
static reloc_howto_type nds32_elf_howto_table[] =
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTPC_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTPC_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOTPC_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
HOWTO2 (R_NDS32_GOTPC_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTPC_LO12", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTPC_LO12", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOTOFF_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
HOWTO2 (R_NDS32_GOTOFF_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOTOFF_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
HOWTO2 (R_NDS32_GOTOFF_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_LO12", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_LO12", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Alignment hint for relaxable instruction. This is used with
R_NDS32_LABEL as a pair. Relax this instruction from 4 bytes to 2
/* Alignment hint for relaxable instruction. This is used with
R_NDS32_LABEL as a pair. Relax this instruction from 4 bytes to 2
@@
-1055,918
+1055,918
@@
static reloc_howto_type nds32_elf_howto_table[] =
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_INSN16", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_INSN16", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Alignment hint for label. */
HOWTO2 (R_NDS32_LABEL, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Alignment hint for label. */
HOWTO2 (R_NDS32_LABEL, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LABEL", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LABEL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for unconditional call sequence */
HOWTO2 (R_NDS32_LONGCALL1, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for unconditional call sequence */
HOWTO2 (R_NDS32_LONGCALL1, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL1", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL1", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL2, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL2, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL2", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL2", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL3, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL3, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL3", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL3", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for unconditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP1, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for unconditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP1, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP1", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP1", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP2, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP2, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP2", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP2", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP3, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP3, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP3", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP3", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_LOADSTORE, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_LOADSTORE, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LOADSTORE", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LOADSTORE", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_9_FIXED_RELA, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_9_FIXED_RELA, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_9_FIXED_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_9_FIXED_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000000ff, /* src_mask */
0x000000ff, /* dst_mask */
0x000000ff, /* src_mask */
0x000000ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_15_FIXED_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_15_FIXED_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_15_FIXED_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_15_FIXED_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00003fff, /* src_mask */
0x00003fff, /* dst_mask */
0x00003fff, /* src_mask */
0x00003fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_17_FIXED_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_17_FIXED_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_17_FIXED_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_17_FIXED_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_25_FIXED_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for load/store sequence. */
HOWTO2 (R_NDS32_25_FIXED_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_25_FIXED_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_25_FIXED_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00ffffff, /* src_mask */
0x00ffffff, /* dst_mask */
0x00ffffff, /* src_mask */
0x00ffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* High 20 bits of PLT symbol offset relative to PC. */
HOWTO2 (R_NDS32_PLTREL_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* High 20 bits of PLT symbol offset relative to PC. */
HOWTO2 (R_NDS32_PLTREL_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLTREL_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLTREL_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Low 12 bits of PLT symbol offset relative to PC. */
HOWTO2 (R_NDS32_PLTREL_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Low 12 bits of PLT symbol offset relative to PC. */
HOWTO2 (R_NDS32_PLTREL_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLTREL_LO12", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLTREL_LO12", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* High 20 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* High 20 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_HI20",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_HI20",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Low 12 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_LO12,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Low 12 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_LO12,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO12",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO12",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 12 bits offset. */
HOWTO2 (R_NDS32_SDA12S2_DP_RELA,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Small data area 12 bits offset. */
HOWTO2 (R_NDS32_SDA12S2_DP_RELA,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA12S2_DP_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA12S2_DP_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 12 bits offset. */
HOWTO2 (R_NDS32_SDA12S2_SP_RELA,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Small data area 12 bits offset. */
HOWTO2 (R_NDS32_SDA12S2_SP_RELA,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA12S2_SP_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA12S2_SP_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2_DP_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2_DP_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S2_DP_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S2_DP_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2_SP_RELA,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
/* Lower 12 bits of address. */
HOWTO2 (R_NDS32_LO12S2_SP_RELA,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S2_SP_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S2_SP_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Lower 12 bits of address. Special identity for or case. */
HOWTO2 (R_NDS32_LO12S0_ORI_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* Lower 12 bits of address. Special identity for or case. */
HOWTO2 (R_NDS32_LO12S0_ORI_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S0_ORI_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_LO12S0_ORI_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 19 bits offset. */
HOWTO2 (R_NDS32_SDA16S3_RELA, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* Small data area 19 bits offset. */
HOWTO2 (R_NDS32_SDA16S3_RELA, /* type */
3, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA16S3_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA16S3_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA17S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
17, /* bitsize */
/* Small data area 15 bits offset. */
HOWTO2 (R_NDS32_SDA17S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
17, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA17S2_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA17S2_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0001ffff, /* src_mask */
0x0001ffff, /* dst_mask */
0x0001ffff, /* src_mask */
0x0001ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_SDA18S1_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
18, /* bitsize */
HOWTO2 (R_NDS32_SDA18S1_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
18, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA18S1_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA18S1_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0003ffff, /* src_mask */
0x0003ffff, /* dst_mask */
0x0003ffff, /* src_mask */
0x0003ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_SDA19S0_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
HOWTO2 (R_NDS32_SDA19S0_RELA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA19S0_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA19S0_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_DWARF2_OP1_RELA,/* type */
0, /* rightshift */
0, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
HOWTO2 (R_NDS32_DWARF2_OP1_RELA,/* type */
0, /* rightshift */
0, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DWARF2_OP1_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DWARF2_OP1_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xff, /* src_mask */
0xff, /* dst_mask */
0xff, /* src_mask */
0xff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_DWARF2_OP2_RELA,/* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
HOWTO2 (R_NDS32_DWARF2_OP2_RELA,/* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DWARF2_OP2_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DWARF2_OP2_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_DWARF2_LEB_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO2 (R_NDS32_DWARF2_LEB_RELA,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DWARF2_LEB_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DWARF2_LEB_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_UPDATE_TA_RELA,/* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
HOWTO2 (R_NDS32_UPDATE_TA_RELA,/* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_UPDATE_TA_RELA",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_UPDATE_TA_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Like R_NDS32_PCREL, but referring to the procedure linkage table
entry for the symbol. */
HOWTO2 (R_NDS32_9_PLTREL, /* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
/* Like R_NDS32_PCREL, but referring to the procedure linkage table
entry for the symbol. */
HOWTO2 (R_NDS32_9_PLTREL, /* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_9_PLTREL", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_9_PLTREL", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xff, /* src_mask */
0xff, /* dst_mask */
0xff, /* src_mask */
0xff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* Low 20 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_LO20,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* Low 20 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_LO20,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO20",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO20",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* low 15 bits of PLT symbol offset relative to GOT (GP) */
HOWTO2 (R_NDS32_PLT_GOTREL_LO15,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* low 15 bits of PLT symbol offset relative to GOT (GP) */
HOWTO2 (R_NDS32_PLT_GOTREL_LO15,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO15",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO15",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Low 19 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_LO19,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
/* Low 19 bits of PLT symbol offset relative to GOT (GP). */
HOWTO2 (R_NDS32_PLT_GOTREL_LO19,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO19",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_PLT_GOTREL_LO19",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOT_LO15, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_GOT_LO15, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_LO15", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_LO15", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOT_LO19, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
HOWTO2 (R_NDS32_GOT_LO19, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_LO19", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT_LO19", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOTOFF_LO15, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_GOTOFF_LO15, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_LO15", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_LO15", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_GOTOFF_LO19, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
HOWTO2 (R_NDS32_GOTOFF_LO19, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
19, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_LO19", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOTOFF_LO19", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
0x0007ffff, /* src_mask */
0x0007ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* GOT 15 bits offset. */
HOWTO2 (R_NDS32_GOT15S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
/* GOT 15 bits offset. */
HOWTO2 (R_NDS32_GOT15S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT15S2_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT15S2_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
0x00007fff, /* src_mask */
0x00007fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* GOT 17 bits offset. */
HOWTO2 (R_NDS32_GOT17S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
17, /* bitsize */
/* GOT 17 bits offset. */
HOWTO2 (R_NDS32_GOT17S2_RELA, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
17, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT17S2_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_GOT17S2_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0001ffff, /* src_mask */
0x0001ffff, /* dst_mask */
0x0001ffff, /* src_mask */
0x0001ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 5 bit address. */
HOWTO2 (R_NDS32_5_RELA, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
5, /* bitsize */
/* A 5 bit address. */
HOWTO2 (R_NDS32_5_RELA, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
5, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_5_RELA", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_5_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x1f, /* src_mask */
0x1f, /* dst_mask */
0x1f, /* src_mask */
0x1f, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_10_UPCREL_RELA,/* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
HOWTO2 (R_NDS32_10_UPCREL_RELA,/* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_10_UPCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_10_UPCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x1ff, /* src_mask */
0x1ff, /* dst_mask */
0x1ff, /* src_mask */
0x1ff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
HOWTO2 (R_NDS32_SDA_FP7U2_RELA,/* type */
2, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
7, /* bitsize */
HOWTO2 (R_NDS32_SDA_FP7U2_RELA,/* type */
2, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
7, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA_FP7U2_RELA",/* name */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_SDA_FP7U2_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0000007f, /* src_mask */
0x0000007f, /* dst_mask */
0x0000007f, /* src_mask */
0x0000007f, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_WORD_9_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
HOWTO2 (R_NDS32_WORD_9_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_WORD_9_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_WORD_9_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xff, /* src_mask */
0xff, /* dst_mask */
0xff, /* src_mask */
0xff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
HOWTO2 (R_NDS32_25_ABS_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
HOWTO2 (R_NDS32_25_ABS_RELA, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
24, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_ABS_RELA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_25_ABS_RELA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
0xffffff, /* src_mask */
0xffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A relative 17 bit relocation for ifc, right shifted by 1. */
HOWTO2 (R_NDS32_17IFC_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
/* A relative 17 bit relocation for ifc, right shifted by 1. */
HOWTO2 (R_NDS32_17IFC_PCREL_RELA,/* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_17IFC_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_17IFC_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
0xffff, /* src_mask */
0xffff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* A relative unsigned 10 bit relocation for ifc, right shifted by 1. */
HOWTO2 (R_NDS32_10IFCU_PCREL_RELA,/* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
/* A relative unsigned 10 bit relocation for ifc, right shifted by 1. */
HOWTO2 (R_NDS32_10IFCU_PCREL_RELA,/* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
9, /* bitsize */
-
TRUE
, /* pc_relative */
+
true
, /* pc_relative */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_10IFCU_PCREL_RELA",/* name */
0, /* bitpos */
complain_overflow_unsigned,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_10IFCU_PCREL_RELA",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x1ff, /* src_mask */
0x1ff, /* dst_mask */
0x1ff, /* src_mask */
0x1ff, /* dst_mask */
-
TRUE
), /* pcrel_offset */
+
true
), /* pcrel_offset */
/* Like R_NDS32_HI20, but referring to the TLS LE entry for the symbol. */
HOWTO2 (R_NDS32_TLS_LE_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* Like R_NDS32_HI20, but referring to the TLS LE entry for the symbol. */
HOWTO2 (R_NDS32_TLS_LE_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_LE_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
HOWTO2 (R_NDS32_TLS_LE_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_LO12", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_LO12", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Like R_NDS32_HI20, but referring to the TLS IE entry for the symbol. */
HOWTO2 (R_NDS32_TLS_IE_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* Like R_NDS32_HI20, but referring to the TLS IE entry for the symbol. */
HOWTO2 (R_NDS32_TLS_IE_HI20, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IE_HI20", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IE_HI20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_IE_LO12S2,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
HOWTO2 (R_NDS32_TLS_IE_LO12S2,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IE_LO12S2",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IE_LO12S2",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS LE TP offset relocation */
HOWTO2 (R_NDS32_TLS_TPOFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS LE TP offset relocation */
HOWTO2 (R_NDS32_TLS_TPOFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_TPOFF", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_TPOFF", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* A 20 bit address. */
HOWTO2 (R_NDS32_TLS_LE_20, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* A 20 bit address. */
HOWTO2 (R_NDS32_TLS_LE_20, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_20", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
0xfffff, /* src_mask */
0xfffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_LE_15S0, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_TLS_LE_15S0, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_15S0", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_15S0", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x7fff, /* src_mask */
0x7fff, /* dst_mask */
0x7fff, /* src_mask */
0x7fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_LE_15S1, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_TLS_LE_15S1, /* type */
1, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_15S1", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_15S1", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x7fff, /* src_mask */
0x7fff, /* dst_mask */
0x7fff, /* src_mask */
0x7fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_LE_15S2, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
HOWTO2 (R_NDS32_TLS_LE_15S2, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
15, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_15S2", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_LE_15S2", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x7fff, /* src_mask */
0x7fff, /* dst_mask */
0x7fff, /* src_mask */
0x7fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for unconditional call sequence */
HOWTO2 (R_NDS32_LONGCALL4, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for unconditional call sequence */
HOWTO2 (R_NDS32_LONGCALL4, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL4", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL4", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL5, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL5, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL5", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL5", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL6, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional call sequence. */
HOWTO2 (R_NDS32_LONGCALL6, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL6", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGCALL6", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for unconditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP4, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for unconditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP4, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP4", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP4", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP5, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP5, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP5", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP5", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP6, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP6, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP6", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP6", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP7, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* Relax hint for conditional branch sequence. */
HOWTO2 (R_NDS32_LONGJUMP7, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP7", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LONGJUMP7", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_IE_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
HOWTO2 (R_NDS32_TLS_IE_LO12, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IE_LO12", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IE_LO12", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* Like R_NDS32_HI20, but referring to the TLS IE (PIE)
entry for the symbol. */
/* Like R_NDS32_HI20, but referring to the TLS IE (PIE)
entry for the symbol. */
@@
-1974,118
+1974,118
@@
static reloc_howto_type nds32_elf_howto_table[] =
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IEGP_HI20",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IEGP_HI20",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_IEGP_LO12,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
HOWTO2 (R_NDS32_TLS_IEGP_LO12,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IEGP_LO12",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IEGP_LO12",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO2 (R_NDS32_TLS_IEGP_LO12S2,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
HOWTO2 (R_NDS32_TLS_IEGP_LO12S2,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
10, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IEGP_LO12S2",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_IEGP_LO12S2",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
0x000003ff, /* src_mask */
0x000003ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS description relocation */
HOWTO2 (R_NDS32_TLS_DESC, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* TLS description relocation */
HOWTO2 (R_NDS32_TLS_DESC, /* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_hi20_reloc, /* special_function */
"R_NDS32_TLS_DESC_HI20",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_hi20_reloc, /* special_function */
"R_NDS32_TLS_DESC_HI20",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description offset high part. */
HOWTO2 (R_NDS32_TLS_DESC_HI20,/* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* TLS GD/LD description offset high part. */
HOWTO2 (R_NDS32_TLS_DESC_HI20,/* type */
12, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_hi20_reloc, /* special_function */
"R_NDS32_TLS_DESC_HI20",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_hi20_reloc, /* special_function */
"R_NDS32_TLS_DESC_HI20",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description offset low part. */
HOWTO2 (R_NDS32_TLS_DESC_LO12,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
/* TLS GD/LD description offset low part. */
HOWTO2 (R_NDS32_TLS_DESC_LO12,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
12, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_TLS_DESC_LO12",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_lo12_reloc, /* special_function */
"R_NDS32_TLS_DESC_LO12",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description offset set (movi). */
HOWTO2 (R_NDS32_TLS_DESC_20, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
/* TLS GD/LD description offset set (movi). */
HOWTO2 (R_NDS32_TLS_DESC_20, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
20, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_DESC_20", /* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_DESC_20", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
0x000fffff, /* src_mask */
0x000fffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description offset set (lwi.gp). */
HOWTO2 (R_NDS32_TLS_DESC_SDA17S2,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
17, /* bitsize */
/* TLS GD/LD description offset set (lwi.gp). */
HOWTO2 (R_NDS32_TLS_DESC_SDA17S2,/* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
17, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_DESC_SDA17S2",/* name */
0, /* bitpos */
complain_overflow_signed,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_NDS32_TLS_DESC_SDA17S2",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0001ffff, /* src_mask */
0x0001ffff, /* dst_mask */
0x0001ffff, /* src_mask */
0x0001ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
};
/* Relocations used for relaxation. */
};
/* Relocations used for relaxation. */
@@
-2097,399
+2097,399
@@
static reloc_howto_type nds32_elf_relax_howto_table[] = {
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_RELAX_ENTRY", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_RELAX_ENTRY", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_GOT_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_GOT_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_GOT_SUFF", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_GOT_SUFF", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_GOTOFF_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_GOTOFF_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_GOTOFF_SUFF", /* name */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_GOTOFF_SUFF", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_PLT_GOT_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_PLT_GOT_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PLT_GOT_SUFF",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PLT_GOT_SUFF",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_MULCALL_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_MULCALL_SUFF, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_MULCALL_SUFF",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_MULCALL_SUFF",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_PTR, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_PTR, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PTR", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PTR", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_PTR_COUNT, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_PTR_COUNT, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PTR_COUNT", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PTR_COUNT", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_PTR_RESOLVED, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_PTR_RESOLVED, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PTR_RESOLVED",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PTR_RESOLVED",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_PLTBLOCK, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_PLTBLOCK, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PLTBLOCK", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_PLTBLOCK", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_RELAX_REGION_BEGIN,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_RELAX_REGION_BEGIN,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_RELAX_REGION_BEGIN",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_RELAX_REGION_BEGIN",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_RELAX_REGION_END,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_RELAX_REGION_END,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_RELAX_REGION_END",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_RELAX_REGION_END",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_MINUEND, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_MINUEND, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_MINUEND", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_MINUEND", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_SUBTRAHEND, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_SUBTRAHEND, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_SUBTRAHEND", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_SUBTRAHEND", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_DIFF8, /* type */
0, /* rightshift */
0, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
HOWTO3 (R_NDS32_DIFF8, /* type */
0, /* rightshift */
0, /* size (0 = byte, 1 = short, 2 = long) */
8, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF8", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF8", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x000000ff, /* src_mask */
0x000000ff, /* dst_mask */
0x000000ff, /* src_mask */
0x000000ff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_DIFF16, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
HOWTO3 (R_NDS32_DIFF16, /* type */
0, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF16", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF16", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_DIFF32, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_DIFF32, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF32", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF32", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_DIFF_ULEB128, /* type */
0, /* rightshift */
0, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
HOWTO3 (R_NDS32_DIFF_ULEB128, /* type */
0, /* rightshift */
0, /* size (0 = byte, 1 = short, 2 = long) */
0, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF_ULEB128",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DIFF_ULEB128",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_DATA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_DATA, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DATA", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_DATA", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_TRAN, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_TRAN, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TRAN", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TRAN", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_TLS_LE_ADD, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_TLS_LE_ADD, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_LE_ADD", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_LE_ADD", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_TLS_LE_LS, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_TLS_LE_LS, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_LE_LS", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_LE_LS", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_EMPTY, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_EMPTY, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_EMPTY", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_EMPTY", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description address base addition. */
HOWTO3 (R_NDS32_TLS_DESC_ADD, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS GD/LD description address base addition. */
HOWTO3 (R_NDS32_TLS_DESC_ADD, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_ADD",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_ADD",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description function load. */
HOWTO3 (R_NDS32_TLS_DESC_FUNC,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS GD/LD description function load. */
HOWTO3 (R_NDS32_TLS_DESC_FUNC,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_FUNC",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_FUNC",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS DESC resolve function call. */
HOWTO3 (R_NDS32_TLS_DESC_CALL,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS DESC resolve function call. */
HOWTO3 (R_NDS32_TLS_DESC_CALL,/* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_CALL",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_CALL",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS DESC variable access. */
HOWTO3 (R_NDS32_TLS_DESC_MEM, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS DESC variable access. */
HOWTO3 (R_NDS32_TLS_DESC_MEM, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_MEM",/* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_DESC_MEM",/* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description mark (@tlsdec). */
HOWTO3 (R_NDS32_RELAX_REMOVE, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS GD/LD description mark (@tlsdec). */
HOWTO3 (R_NDS32_RELAX_REMOVE, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_REMOVE", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_REMOVE", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* TLS GD/LD description mark (@tlsdec). */
HOWTO3 (R_NDS32_RELAX_GROUP, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* TLS GD/LD description mark (@tlsdec). */
HOWTO3 (R_NDS32_RELAX_GROUP, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_GROUP", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_GROUP", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
HOWTO3 (R_NDS32_TLS_IEGP_LW, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
HOWTO3 (R_NDS32_TLS_IEGP_LW, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_IEGP_LW", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_TLS_IEGP_LW", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
), /* pcrel_offset */
+
false
), /* pcrel_offset */
/* LA and FLSI relaxation. */
HOWTO3 (R_NDS32_LSI, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
/* LA and FLSI relaxation. */
HOWTO3 (R_NDS32_LSI, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
32, /* bitsize */
-
FALSE
, /* pc_relative */
+
false
, /* pc_relative */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LSI", /* name */
0, /* bitpos */
complain_overflow_dont,/* complain_on_overflow */
nds32_elf_ignore_reloc,/* special_function */
"R_NDS32_LSI", /* name */
-
FALSE
, /* partial_inplace */
+
false
, /* partial_inplace */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
0xffffffff, /* src_mask */
0xffffffff, /* dst_mask */
-
FALSE
),
+
false
),
};
static unsigned long dl_tlsdesc_lazy_trampoline[] =
};
static unsigned long dl_tlsdesc_lazy_trampoline[] =
@@
-3224,7
+3224,7
@@
bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
/* Set the howto pointer for an NDS32 ELF reloc. */
/* Set the howto pointer for an NDS32 ELF reloc. */
-static b
fd_boolean
+static b
ool
nds32_info_to_howto_rel (bfd *abfd, arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
nds32_info_to_howto_rel (bfd *abfd, arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
@@
-3237,15
+3237,15
@@
nds32_info_to_howto_rel (bfd *abfd, arelent *cache_ptr,
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
- return
FALSE
;
+ return
false
;
}
BFD_ASSERT (ELF32_R_TYPE (dst->r_info) <= R_NDS32_GNU_VTENTRY);
cache_ptr->howto = bfd_elf32_bfd_reloc_type_table_lookup (r_type);
}
BFD_ASSERT (ELF32_R_TYPE (dst->r_info) <= R_NDS32_GNU_VTENTRY);
cache_ptr->howto = bfd_elf32_bfd_reloc_type_table_lookup (r_type);
- return
TRUE
;
+ return
true
;
}
}
-static b
fd_boolean
+static b
ool
nds32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
nds32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
@@
-3256,19
+3256,19
@@
nds32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
&& (r_type < R_NDS32_max)))
{
cache_ptr->howto = bfd_elf32_bfd_reloc_type_table_lookup (r_type);
&& (r_type < R_NDS32_max)))
{
cache_ptr->howto = bfd_elf32_bfd_reloc_type_table_lookup (r_type);
- return
TRUE
;
+ return
true
;
}
/* xgettext:c-format */
_bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r_type);
bfd_set_error (bfd_error_bad_value);
}
/* xgettext:c-format */
_bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r_type);
bfd_set_error (bfd_error_bad_value);
- return
FALSE
;
+ return
false
;
}
/* Support for core dump NOTE sections.
Reference to include/linux/elfcore.h in Linux. */
}
/* Support for core dump NOTE sections.
Reference to include/linux/elfcore.h in Linux. */
-static b
fd_boolean
+static b
ool
nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
{
int offset;
nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
{
int offset;
@@
-3305,7
+3305,7
@@
nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
break;
default:
break;
default:
- return
FALSE
;
+ return
false
;
}
/* Make a ".reg" section. */
}
/* Make a ".reg" section. */
@@
-3313,7
+3313,7
@@
nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
size, note->descpos + offset);
}
size, note->descpos + offset);
}
-static b
fd_boolean
+static b
ool
nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
{
switch (note->descsz)
nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
{
switch (note->descsz)
@@
-3329,7
+3329,7
@@
nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
break;
default:
break;
default:
- return
FALSE
;
+ return
false
;
}
/* Note that for some reason, a spurious space is tacked
}
/* Note that for some reason, a spurious space is tacked
@@
-3343,7
+3343,7
@@
nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
command[n - 1] = '\0';
}
command[n - 1] = '\0';
}
- return
TRUE
;
+ return
true
;
}
/* Hook called by the linker routine which adds symbols from an object
}
/* Hook called by the linker routine which adds symbols from an object
@@
-3351,7
+3351,7
@@
nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
We also keep watching for whether we need to create the sdata special
linker sections. */
We also keep watching for whether we need to create the sdata special
linker sections. */
-static b
fd_boolean
+static b
ool
nds32_elf_add_symbol_hook (bfd *abfd,
struct bfd_link_info *info ATTRIBUTE_UNUSED,
Elf_Internal_Sym *sym,
nds32_elf_add_symbol_hook (bfd *abfd,
struct bfd_link_info *info ATTRIBUTE_UNUSED,
Elf_Internal_Sym *sym,
@@
-3385,7
+3385,7
@@
nds32_elf_add_symbol_hook (bfd *abfd,
*secp = bfd_make_section_old_way (abfd, ".scommon_d");
break;
default:
*secp = bfd_make_section_old_way (abfd, ".scommon_d");
break;
default:
- return
TRUE
;
+ return
true
;
}
(*secp)->flags |= SEC_IS_COMMON | SEC_SMALL_DATA;
}
(*secp)->flags |= SEC_IS_COMMON | SEC_SMALL_DATA;
@@
-3393,7
+3393,7
@@
nds32_elf_add_symbol_hook (bfd *abfd,
break;
}
break;
}
- return
TRUE
;
+ return
true
;
}
/* This function can figure out the best location for a base register to access
}
/* This function can figure out the best location for a base register to access
@@
-3444,10
+3444,10
@@
static asection *sda_rela_sec = NULL;
#define SDA_SECTION_NUM 10
static bfd_reloc_status_type
#define SDA_SECTION_NUM 10
static bfd_reloc_status_type
-nds32_elf_final_sda_base (bfd *
output_bfd,
- struct bfd_link_info *
info,
- bfd_vma *
psb,
- b
fd_boolean
add_symbol)
+nds32_elf_final_sda_base (bfd *output_bfd,
+ struct bfd_link_info *info,
+ bfd_vma *psb,
+ b
ool
add_symbol)
{
int relax_fp_as_gp;
struct elf_nds32_link_hash_table *table;
{
int relax_fp_as_gp;
struct elf_nds32_link_hash_table *table;
@@
-3456,7
+3456,7
@@
nds32_elf_final_sda_base (bfd * output_bfd,
asection *first = NULL, *final = NULL, *temp;
bfd_vma sda_base = 0;
asection *first = NULL, *final = NULL, *temp;
bfd_vma sda_base = 0;
- h = bfd_link_hash_lookup (info->hash, "_SDA_BASE_",
FALSE, FALSE, TRUE
);
+ h = bfd_link_hash_lookup (info->hash, "_SDA_BASE_",
false, false, true
);
if (!h || (h->type != bfd_link_hash_defined
&& h->type != bfd_link_hash_defweak))
{
if (!h || (h->type != bfd_link_hash_defined
&& h->type != bfd_link_hash_defweak))
{
@@
-3579,9
+3579,9
@@
nds32_elf_final_sda_base (bfd * output_bfd,
if (!_bfd_generic_link_add_one_symbol
(info, output_bfd, "_SDA_BASE_", BSF_GLOBAL | BSF_WEAK, first,
if (!_bfd_generic_link_add_one_symbol
(info, output_bfd, "_SDA_BASE_", BSF_GLOBAL | BSF_WEAK, first,
- (bfd_vma) sda_base, (const char *) NULL,
FALSE
,
+ (bfd_vma) sda_base, (const char *) NULL,
false
,
get_elf_backend_data (output_bfd)->collect, &h))
get_elf_backend_data (output_bfd)->collect, &h))
- return
FALSE
;
+ return
false
;
sda_rela_sec = first;
}
sda_rela_sec = first;
}
@@
-3589,7
+3589,7
@@
nds32_elf_final_sda_base (bfd * output_bfd,
/* Set _FP_BASE_ to _SDA_BASE_. */
table = nds32_elf_hash_table (info);
relax_fp_as_gp = table->relax_fp_as_gp;
/* Set _FP_BASE_ to _SDA_BASE_. */
table = nds32_elf_hash_table (info);
relax_fp_as_gp = table->relax_fp_as_gp;
- h2 = bfd_link_hash_lookup (info->hash, FP_BASE_NAME,
FALSE, FALSE, FALSE
);
+ h2 = bfd_link_hash_lookup (info->hash, FP_BASE_NAME,
false, false, false
);
/* _SDA_BASE_ is difined in linker script. */
if (!first)
{
/* _SDA_BASE_ is difined in linker script. */
if (!first)
{
@@
-3607,8
+3607,8
@@
nds32_elf_final_sda_base (bfd * output_bfd,
if (!_bfd_generic_link_add_one_symbol
(info, output_bfd, FP_BASE_NAME, BSF_GLOBAL | BSF_WEAK,
first, sda_base, (const char *) NULL,
if (!_bfd_generic_link_add_one_symbol
(info, output_bfd, FP_BASE_NAME, BSF_GLOBAL | BSF_WEAK,
first, sda_base, (const char *) NULL,
-
FALSE
, get_elf_backend_data (output_bfd)->collect, &h2))
- return
FALSE
;
+
false
, get_elf_backend_data (output_bfd)->collect, &h2))
+ return
false
;
}
if (add_symbol)
}
if (add_symbol)
@@
-3704,13
+3704,13
@@
nds32_elf_link_hash_table_create (bfd *abfd)
/* Create .got, .gotplt, and .rela.got sections in DYNOBJ, and set up
shortcuts to them in our hash table. */
/* Create .got, .gotplt, and .rela.got sections in DYNOBJ, and set up
shortcuts to them in our hash table. */
-static b
fd_boolean
+static b
ool
create_got_section (bfd *dynobj, struct bfd_link_info *info)
{
struct elf_link_hash_table *ehtab;
if (!_bfd_elf_create_got_section (dynobj, info))
create_got_section (bfd *dynobj, struct bfd_link_info *info)
{
struct elf_link_hash_table *ehtab;
if (!_bfd_elf_create_got_section (dynobj, info))
- return
FALSE
;
+ return
false
;
ehtab = elf_hash_table (info);
ehtab->sgot = bfd_get_section_by_name (dynobj, ".got");
ehtab = elf_hash_table (info);
ehtab->sgot = bfd_get_section_by_name (dynobj, ".got");
@@
-3726,14
+3726,14
@@
create_got_section (bfd *dynobj, struct bfd_link_info *info)
| SEC_IN_MEMORY | SEC_LINKER_CREATED
| SEC_READONLY))
|| !bfd_set_section_alignment (ehtab->srelgot, 2))
| SEC_IN_MEMORY | SEC_LINKER_CREATED
| SEC_READONLY))
|| !bfd_set_section_alignment (ehtab->srelgot, 2))
- return
FALSE
;
+ return
false
;
- return
TRUE
;
+ return
true
;
}
/* Create dynamic sections when linking against a dynamic object. */
}
/* Create dynamic sections when linking against a dynamic object. */
-static b
fd_boolean
+static b
ool
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
{
struct elf_link_hash_table *ehtab;
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
{
struct elf_link_hash_table *ehtab;
@@
-3769,7
+3769,7
@@
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
if (s == NULL
|| !bfd_set_section_flags (s, pltflags)
|| !bfd_set_section_alignment (s, bed->plt_alignment))
if (s == NULL
|| !bfd_set_section_flags (s, pltflags)
|| !bfd_set_section_alignment (s, bed->plt_alignment))
- return
FALSE
;
+ return
false
;
if (bed->want_plt_sym)
{
if (bed->want_plt_sym)
{
@@
-3780,16
+3780,16
@@
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
if (!(_bfd_generic_link_add_one_symbol
(info, abfd, "_PROCEDURE_LINKAGE_TABLE_", BSF_GLOBAL, s,
if (!(_bfd_generic_link_add_one_symbol
(info, abfd, "_PROCEDURE_LINKAGE_TABLE_", BSF_GLOBAL, s,
- (bfd_vma) 0, (const char *) NULL,
FALSE
,
+ (bfd_vma) 0, (const char *) NULL,
false
,
get_elf_backend_data (abfd)->collect, &bh)))
get_elf_backend_data (abfd)->collect, &bh)))
- return
FALSE
;
+ return
false
;
h = (struct elf_link_hash_entry *) bh;
h->def_regular = 1;
h->type = STT_OBJECT;
if (bfd_link_pic (info) && !bfd_elf_link_record_dynamic_symbol (info, h))
h = (struct elf_link_hash_entry *) bh;
h->def_regular = 1;
h->type = STT_OBJECT;
if (bfd_link_pic (info) && !bfd_elf_link_record_dynamic_symbol (info, h))
- return
FALSE
;
+ return
false
;
}
s = bfd_make_section (abfd,
}
s = bfd_make_section (abfd,
@@
-3798,10
+3798,10
@@
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
if (s == NULL
|| !bfd_set_section_flags (s, flags | SEC_READONLY)
|| !bfd_set_section_alignment (s, ptralign))
if (s == NULL
|| !bfd_set_section_flags (s, flags | SEC_READONLY)
|| !bfd_set_section_alignment (s, ptralign))
- return
FALSE
;
+ return
false
;
if (ehtab->sgot == NULL && !create_got_section (abfd, info))
if (ehtab->sgot == NULL && !create_got_section (abfd, info))
- return
FALSE
;
+ return
false
;
for (sec = abfd->sections; sec; sec = sec->next)
{
for (sec = abfd->sections; sec; sec = sec->next)
{
@@
-3819,7
+3819,7
@@
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
if (s == NULL
|| !bfd_set_section_flags (s, flags | SEC_READONLY)
|| !bfd_set_section_alignment (s, ptralign))
if (s == NULL
|| !bfd_set_section_flags (s, flags | SEC_READONLY)
|| !bfd_set_section_alignment (s, ptralign))
- return
FALSE
;
+ return
false
;
}
if (bed->want_dynbss)
}
if (bed->want_dynbss)
@@
-3834,7
+3834,7
@@
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
htab->root.sdynbss = s;
if (s == NULL
|| !bfd_set_section_flags (s, SEC_ALLOC | SEC_LINKER_CREATED))
htab->root.sdynbss = s;
if (s == NULL
|| !bfd_set_section_flags (s, SEC_ALLOC | SEC_LINKER_CREATED))
- return
FALSE
;
+ return
false
;
/* The .rel[a].bss section holds copy relocs. This section is not
normally needed. We need to create it here, though, so that the
linker will map it to an output section. We can't just create it
/* The .rel[a].bss section holds copy relocs. This section is not
normally needed. We need to create it here, though, so that the
linker will map it to an output section. We can't just create it
@@
-3854,11
+3854,11
@@
nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
if (s == NULL
|| !bfd_set_section_flags (s, flags | SEC_READONLY)
|| !bfd_set_section_alignment (s, ptralign))
if (s == NULL
|| !bfd_set_section_flags (s, flags | SEC_READONLY)
|| !bfd_set_section_alignment (s, ptralign))
- return
FALSE
;
+ return
false
;
}
}
}
}
- return
TRUE
;
+ return
true
;
}
/* Copy the extra info we tack onto an elf_link_hash_entry. */
}
/* Copy the extra info we tack onto an elf_link_hash_entry. */
@@
-3890,7
+3890,7
@@
nds32_elf_copy_indirect_symbol (struct bfd_link_info *info,
change the definition to something the rest of the link can
understand. */
change the definition to something the rest of the link can
understand. */
-static b
fd_boolean
+static b
ool
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
struct elf_link_hash_entry *h)
{
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
struct elf_link_hash_entry *h)
{
@@
-3928,7
+3928,7
@@
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
h->needs_plt = 0;
}
h->needs_plt = 0;
}
- return
TRUE
;
+ return
true
;
}
else
h->plt.offset = (bfd_vma) - 1;
}
else
h->plt.offset = (bfd_vma) - 1;
@@
-3942,7
+3942,7
@@
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
BFD_ASSERT (def->root.type == bfd_link_hash_defined);
h->root.u.def.section = def->root.u.def.section;
h->root.u.def.value = def->root.u.def.value;
BFD_ASSERT (def->root.type == bfd_link_hash_defined);
h->root.u.def.section = def->root.u.def.section;
h->root.u.def.value = def->root.u.def.value;
- return
TRUE
;
+ return
true
;
}
/* This is a reference to a symbol defined by a dynamic object which
}
/* This is a reference to a symbol defined by a dynamic object which
@@
-3953,18
+3953,18
@@
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
For such cases we need not do anything here; the relocations will
be handled correctly by relocate_section. */
if (bfd_link_pic (info))
For such cases we need not do anything here; the relocations will
be handled correctly by relocate_section. */
if (bfd_link_pic (info))
- return
TRUE
;
+ return
true
;
/* If there are no references to this symbol that do not use the
GOT, we don't need to generate a copy reloc. */
if (!h->non_got_ref)
/* If there are no references to this symbol that do not use the
GOT, we don't need to generate a copy reloc. */
if (!h->non_got_ref)
- return
TRUE
;
+ return
true
;
/* If -z nocopyreloc was given, we won't generate them either. */
if (0 && info->nocopyreloc)
{
h->non_got_ref = 0;
/* If -z nocopyreloc was given, we won't generate them either. */
if (0 && info->nocopyreloc)
{
h->non_got_ref = 0;
- return
TRUE
;
+ return
true
;
}
/* If we don't find any dynamic relocs in read-only sections, then
}
/* If we don't find any dynamic relocs in read-only sections, then
@@
-3972,7
+3972,7
@@
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
if (!_bfd_elf_readonly_dynrelocs (h))
{
h->non_got_ref = 0;
if (!_bfd_elf_readonly_dynrelocs (h))
{
h->non_got_ref = 0;
- return
TRUE
;
+ return
true
;
}
/* We must allocate the symbol in our .dynbss section, which will
}
/* We must allocate the symbol in our .dynbss section, which will
@@
-4014,7
+4014,7
@@
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
if (power_of_two > bfd_section_alignment (s))
{
if (!bfd_set_section_alignment (s, power_of_two))
if (power_of_two > bfd_section_alignment (s))
{
if (!bfd_set_section_alignment (s, power_of_two))
- return
FALSE
;
+ return
false
;
}
/* Define the symbol as being at this point in the section. */
}
/* Define the symbol as being at this point in the section. */
@@
-4024,13
+4024,13
@@
nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
/* Increment the section size to make room for the symbol. */
s->size += h->size;
/* Increment the section size to make room for the symbol. */
s->size += h->size;
- return
TRUE
;
+ return
true
;
}
/* Allocate space in .plt, .got and associated reloc sections for
dynamic relocs. */
}
/* Allocate space in .plt, .got and associated reloc sections for
dynamic relocs. */
-static b
fd_boolean
+static b
ool
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
{
struct bfd_link_info *info;
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
{
struct bfd_link_info *info;
@@
-4039,7
+4039,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
struct elf_dyn_relocs *p;
if (h->root.type == bfd_link_hash_indirect)
struct elf_dyn_relocs *p;
if (h->root.type == bfd_link_hash_indirect)
- return
TRUE
;
+ return
true
;
/* When warning symbols are created, they **replace** the "real"
entry in the hash table, thus we never get to see the real
/* When warning symbols are created, they **replace** the "real"
entry in the hash table, thus we never get to see the real
@@
-4051,7
+4051,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
ehtab = elf_hash_table (info);
htab = nds32_elf_hash_table (info);
if (htab == NULL)
ehtab = elf_hash_table (info);
htab = nds32_elf_hash_table (info);
if (htab == NULL)
- return
FALSE
;
+ return
false
;
if ((htab->root.dynamic_sections_created || h->type == STT_GNU_IFUNC)
&& h->plt.refcount > 0
if ((htab->root.dynamic_sections_created || h->type == STT_GNU_IFUNC)
&& h->plt.refcount > 0
@@
-4062,7
+4062,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if (h->dynindx == -1 && !h->forced_local)
{
if (!bfd_elf_link_record_dynamic_symbol (info, h))
if (h->dynindx == -1 && !h->forced_local)
{
if (!bfd_elf_link_record_dynamic_symbol (info, h))
- return
FALSE
;
+ return
false
;
}
if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (1, bfd_link_pic (info), h))
}
if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (1, bfd_link_pic (info), h))
@@
-4114,7
+4114,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if (h->got.refcount > 0)
{
asection *sgot;
if (h->got.refcount > 0)
{
asection *sgot;
- b
fd_boolean
dyn;
+ b
ool
dyn;
int tls_type = elf32_nds32_hash_entry (h)->tls_type;
/* Make sure this symbol is output as a dynamic symbol.
int tls_type = elf32_nds32_hash_entry (h)->tls_type;
/* Make sure this symbol is output as a dynamic symbol.
@@
-4122,7
+4122,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if (h->dynindx == -1 && !h->forced_local)
{
if (!bfd_elf_link_record_dynamic_symbol (info, h))
if (h->dynindx == -1 && !h->forced_local)
{
if (!bfd_elf_link_record_dynamic_symbol (info, h))
- return
FALSE
;
+ return
false
;
}
sgot = elf_hash_table (info)->sgot;
}
sgot = elf_hash_table (info)->sgot;
@@
-4165,7
+4165,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
h->got.offset = (bfd_vma)-1;
if (h->dyn_relocs == NULL)
h->got.offset = (bfd_vma)-1;
if (h->dyn_relocs == NULL)
- return
TRUE
;
+ return
true
;
/* In the shared -Bsymbolic case, discard space allocated for
dynamic pc-relative relocs against symbols which turn out to be
/* In the shared -Bsymbolic case, discard space allocated for
dynamic pc-relative relocs against symbols which turn out to be
@@
-4207,7
+4207,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if (h->dynindx == -1 && !h->forced_local)
{
if (!bfd_elf_link_record_dynamic_symbol (info, h))
if (h->dynindx == -1 && !h->forced_local)
{
if (!bfd_elf_link_record_dynamic_symbol (info, h))
- return
FALSE
;
+ return
false
;
}
/* If that succeeded, we know we'll be keeping all the
}
/* If that succeeded, we know we'll be keeping all the
@@
-4228,7
+4228,7
@@
allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
sreloc->size += p->count * sizeof (Elf32_External_Rela);
}
sreloc->size += p->count * sizeof (Elf32_External_Rela);
}
- return
TRUE
;
+ return
true
;
}
/* Add relocation REL to the end of relocation section SRELOC. */
}
/* Add relocation REL to the end of relocation section SRELOC. */
@@
-4252,19
+4252,19
@@
elf32_nds32_add_dynreloc (bfd *output_bfd,
/* Set the sizes of the dynamic sections. */
/* Set the sizes of the dynamic sections. */
-static b
fd_boolean
+static b
ool
nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info)
{
struct elf_nds32_link_hash_table *htab;
bfd *dynobj;
asection *s;
nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info)
{
struct elf_nds32_link_hash_table *htab;
bfd *dynobj;
asection *s;
- b
fd_boolean
relocs;
+ b
ool
relocs;
bfd *ibfd;
htab = nds32_elf_hash_table (info);
if (htab == NULL)
bfd *ibfd;
htab = nds32_elf_hash_table (info);
if (htab == NULL)
- return
FALSE
;
+ return
false
;
dynobj = elf_hash_table (info)->dynobj;
BFD_ASSERT (dynobj != NULL);
dynobj = elf_hash_table (info)->dynobj;
BFD_ASSERT (dynobj != NULL);
@@
-4419,7
+4419,7
@@
nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* The check_relocs and adjust_dynamic_symbol entry points have
determined the sizes of the various dynamic sections. Allocate
memory for them. */
/* The check_relocs and adjust_dynamic_symbol entry points have
determined the sizes of the various dynamic sections. Allocate
memory for them. */
- relocs =
FALSE
;
+ relocs =
false
;
for (s = dynobj->sections; s != NULL; s = s->next)
{
if ((s->flags & SEC_LINKER_CREATED) == 0)
for (s = dynobj->sections; s != NULL; s = s->next)
{
if ((s->flags & SEC_LINKER_CREATED) == 0)
@@
-4439,10
+4439,10
@@
nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
{
got_size += s->size;
}
{
got_size += s->size;
}
- else if (st
rncmp (bfd_section_name (s), ".rela", 5) == 0
)
+ else if (st
artswith (bfd_section_name (s), ".rela")
)
{
if (s->size != 0 && s != elf_hash_table (info)->srelplt)
{
if (s->size != 0 && s != elf_hash_table (info)->srelplt)
- relocs =
TRUE
;
+ relocs =
true
;
/* We use the reloc_count field as a counter if we need
to copy relocs into the output file. */
/* We use the reloc_count field as a counter if we need
to copy relocs into the output file. */
@@
-4476,7
+4476,7
@@
nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
of garbage. */
s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size);
if (s->contents == NULL)
of garbage. */
s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size);
if (s->contents == NULL)
- return
FALSE
;
+ return
false
;
}
return _bfd_elf_add_dynamic_tags (output_bfd, info, relocs);
}
return _bfd_elf_add_dynamic_tags (output_bfd, info, relocs);
@@
-4691,13
+4691,13
@@
nds32_elf_output_symbol_hook (struct bfd_link_info *info,
table = nds32_elf_hash_table (info);
sym_ld_script = table->sym_ld_script;
if (!sym_ld_script)
table = nds32_elf_hash_table (info);
sym_ld_script = table->sym_ld_script;
if (!sym_ld_script)
- return
TRUE
;
+ return
true
;
if (!h || !name || *name == '\0')
if (!h || !name || *name == '\0')
- return
TRUE
;
+ return
true
;
if (input_sec->flags & SEC_EXCLUDE)
if (input_sec->flags & SEC_EXCLUDE)
- return
TRUE
;
+ return
true
;
if (!check_start_export_sym)
{
if (!check_start_export_sym)
{
@@
-4709,7
+4709,7
@@
nds32_elf_output_symbol_hook (struct bfd_link_info *info,
|| h->root.type == bfd_link_hash_defweak)
{
if (!h->root.u.def.section->output_section)
|| h->root.type == bfd_link_hash_defweak)
{
if (!h->root.u.def.section->output_section)
- return
TRUE
;
+ return
true
;
if (bfd_is_const_section (input_sec))
source = input_sec->name;
if (bfd_is_const_section (input_sec))
source = input_sec->name;
@@
-4723,7
+4723,7
@@
nds32_elf_output_symbol_hook (struct bfd_link_info *info,
+ h->root.u.def.section->output_offset), source);
}
+ h->root.u.def.section->output_offset), source);
}
- return
TRUE
;
+ return
true
;
}
/* Relocate an NDS32/D ELF section.
}
/* Relocate an NDS32/D ELF section.
@@
-4785,7
+4785,7
@@
gottpoff (struct bfd_link_info *info, bfd_vma address)
return tp_offset;
}
return tp_offset;
}
-static b
fd_boolean
+static b
ool
patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd)
{
/* TLS_GD/TLS_LD model #1
patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd)
{
/* TLS_GD/TLS_LD model #1
@@
-4820,7
+4820,7
@@
patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd)
04 00 00 01 lwi $r0,[$r0+#0x4]
40 00 64 00 add $r0,$r0,$r25 */
04 00 00 01 lwi $r0,[$r0+#0x4]
40 00 64 00 add $r0,$r0,$r25 */
- b
fd_boolean rz = FALSE
;
+ b
ool rz = false
;
typedef struct
{
typedef struct
{
@@
-4872,7
+4872,7
@@
patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd)
/* already patched? */
if ((patch[0] == (0xfff07fffu & bfd_getb32 (p + 0))) &&
(patch[1] == bfd_getb32 (p + 4)))
/* already patched? */
if ((patch[0] == (0xfff07fffu & bfd_getb32 (p + 0))) &&
(patch[1] == bfd_getb32 (p + 4)))
- rz =
TRUE
;
+ rz =
true
;
}
else if (mode0[0].opcode == (mode0[0].mask & bfd_getb32 (p + 0)))
{
}
else if (mode0[0].opcode == (mode0[0].mask & bfd_getb32 (p + 0)))
{
@@
-4882,7
+4882,7
@@
patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd)
bfd_putb32 (patch[0] | (regidx << 15), p + 0);
bfd_putb32 (patch[1], p + 4);
bfd_putb32 (patch[2], p + 8);
bfd_putb32 (patch[0] | (regidx << 15), p + 0);
bfd_putb32 (patch[1], p + 4);
bfd_putb32 (patch[2], p + 8);
- rz =
TRUE
;
+ rz =
true
;
}
}
else if (mode1[0].opcode == (mode1[0].mask & bfd_getb32 (p + 0)))
}
}
else if (mode1[0].opcode == (mode1[0].mask & bfd_getb32 (p + 0)))
@@
-4893,7
+4893,7
@@
patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd)
bfd_putb32 (patch[0] | (regidx << 15), p + 0);
bfd_putb32 (patch[1], p + 4);
bfd_putb32 (patch[2], p + 8);
bfd_putb32 (patch[0] | (regidx << 15), p + 0);
bfd_putb32 (patch[1], p + 4);
bfd_putb32 (patch[2], p + 8);
- rz =
TRUE
;
+ rz =
true
;
}
}
}
}
@@
-4948,7
+4948,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
Elf_Internal_Shdr *symtab_hdr;
struct elf_link_hash_entry **sym_hashes;
Elf_Internal_Rela *rel, *relend;
Elf_Internal_Shdr *symtab_hdr;
struct elf_link_hash_entry **sym_hashes;
Elf_Internal_Rela *rel, *relend;
- b
fd_boolean ret = TRUE;
/* Assume success. */
+ b
ool ret = true;
/* Assume success. */
int align = 0;
bfd_reloc_status_type r;
const char *errmsg = NULL;
int align = 0;
bfd_reloc_status_type r;
const char *errmsg = NULL;
@@
-4987,9
+4987,9
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
if ((!bfd_link_relocatable (info)))
{
is_SDA_BASE_set = 1;
if ((!bfd_link_relocatable (info)))
{
is_SDA_BASE_set = 1;
- r = nds32_elf_final_sda_base (output_bfd, info, &gp,
TRUE
);
+ r = nds32_elf_final_sda_base (output_bfd, info, &gp,
true
);
if (r != bfd_reloc_ok)
if (r != bfd_reloc_ok)
- return
FALSE
;
+ return
false
;
}
/* Do TLS model conversion once at first. */
}
/* Do TLS model conversion once at first. */
@@
-5029,7
+5029,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
input_bfd, r_type);
bfd_set_error (bfd_error_bad_value);
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
input_bfd, r_type);
bfd_set_error (bfd_error_bad_value);
- ret =
FALSE
;
+ ret =
false
;
continue;
}
continue;
}
@@
-5106,7
+5106,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
/* External symbol. */
if (bfd_link_relocatable (info))
continue;
/* External symbol. */
if (bfd_link_relocatable (info))
continue;
- b
fd_boolean
warned, ignored, unresolved_reloc;
+ b
ool
warned, ignored, unresolved_reloc;
int symndx = r_symndx - symtab_hdr->sh_info;
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
int symndx = r_symndx - symtab_hdr->sh_info;
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
@@
-5292,7
+5292,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
if (h != NULL)
{
/* External symbol */
if (h != NULL)
{
/* External symbol */
- b
fd_boolean
dyn;
+ b
ool
dyn;
off = h->got.offset;
BFD_ASSERT (off != (bfd_vma) - 1);
off = h->got.offset;
BFD_ASSERT (off != (bfd_vma) - 1);
@@
-5409,7
+5409,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
&& (!info->symbolic || !h->def_regular))))
{
Elf_Internal_Rela outrel;
&& (!info->symbolic || !h->def_regular))))
{
Elf_Internal_Rela outrel;
- b
fd_boolean
skip, relocate;
+ b
ool
skip, relocate;
bfd_byte *loc;
/* When generating a shared object, these relocations
bfd_byte *loc;
/* When generating a shared object, these relocations
@@
-5424,9
+5424,9
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
(input_bfd, elf_elfheader (input_bfd)->e_shstrndx,
elf_section_data (input_section)->rela.hdr->sh_name);
if (name == NULL)
(input_bfd, elf_elfheader (input_bfd)->e_shstrndx,
elf_section_data (input_section)->rela.hdr->sh_name);
if (name == NULL)
- return
FALSE
;
+ return
false
;
- BFD_ASSERT (st
rncmp (name, ".rela", 5) == 0
+ BFD_ASSERT (st
artswith (name, ".rela")
&& strcmp (bfd_section_name (input_section),
name + 5) == 0);
&& strcmp (bfd_section_name (input_section),
name + 5) == 0);
@@
-5434,17
+5434,17
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
BFD_ASSERT (sreloc != NULL);
}
BFD_ASSERT (sreloc != NULL);
}
- skip =
FALSE
;
- relocate =
FALSE
;
+ skip =
false
;
+ relocate =
false
;
outrel.r_offset = _bfd_elf_section_offset (output_bfd,
info,
input_section,
rel->r_offset);
if (outrel.r_offset == (bfd_vma) - 1)
outrel.r_offset = _bfd_elf_section_offset (output_bfd,
info,
input_section,
rel->r_offset);
if (outrel.r_offset == (bfd_vma) - 1)
- skip =
TRUE
;
+ skip =
true
;
else if (outrel.r_offset == (bfd_vma) - 2)
else if (outrel.r_offset == (bfd_vma) - 2)
- skip =
TRUE, relocate = TRUE
;
+ skip =
true, relocate = true
;
outrel.r_offset += (input_section->output_section->vma
+ input_section->output_offset);
outrel.r_offset += (input_section->output_section->vma
+ input_section->output_offset);
@@
-5467,7
+5467,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
&& h->def_regular)
|| (bfd_link_pie (info) && h->def_regular))
{
&& h->def_regular)
|| (bfd_link_pie (info) && h->def_regular))
{
- relocate =
TRUE
;
+ relocate =
true
;
outrel.r_info = ELF32_R_INFO (0, R_NDS32_RELATIVE);
outrel.r_addend = relocation + rel->r_addend;
outrel.r_info = ELF32_R_INFO (0, R_NDS32_RELATIVE);
outrel.r_addend = relocation + rel->r_addend;
@@
-5495,7
+5495,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
"making a shared object; recompile with -fPIC"),
input_bfd, nds32_elf_howto_table[r_type].name, h->root.root.string);
bfd_set_error (bfd_error_bad_value);
"making a shared object; recompile with -fPIC"),
input_bfd, nds32_elf_howto_table[r_type].name, h->root.root.string);
bfd_set_error (bfd_error_bad_value);
- return
FALSE
;
+ return
false
;
}
outrel.r_info = ELF32_R_INFO (h->dynindx, r_type);
}
outrel.r_info = ELF32_R_INFO (h->dynindx, r_type);
@@
-5523,7
+5523,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
_bfd_error_handler
(_("%pB: warning: %s unsupported in shared mode"),
input_bfd, "R_NDS32_25_ABS_RELA");
_bfd_error_handler
(_("%pB: warning: %s unsupported in shared mode"),
input_bfd, "R_NDS32_25_ABS_RELA");
- return
FALSE
;
+ return
false
;
}
break;
}
break;
@@
-5563,7
+5563,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
if (h != NULL)
{
if (h != NULL)
{
- b
fd_boolean
dyn;
+ b
ool
dyn;
off = h->got.offset;
BFD_ASSERT (off != (bfd_vma) - 1);
off = h->got.offset;
BFD_ASSERT (off != (bfd_vma) - 1);
@@
-5648,7
+5648,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
/* Incorrect alignment. */
_bfd_error_handler
(_("%pB: warning: unaligned access to GOT entry"), input_bfd);
/* Incorrect alignment. */
_bfd_error_handler
(_("%pB: warning: unaligned access to GOT entry"), input_bfd);
- ret =
FALSE
;
+ ret =
false
;
r = bfd_reloc_dangerous;
goto check_reloc;
}
r = bfd_reloc_dangerous;
goto check_reloc;
}
@@
-5684,12
+5684,12
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
/* If the symbol is in the abs section, the out_bfd will be null.
This happens when the relocation has a symbol@GOTOFF. */
/* If the symbol is in the abs section, the out_bfd will be null.
This happens when the relocation has a symbol@GOTOFF. */
- r = nds32_elf_final_sda_base (output_bfd, info, &gp,
FALSE
);
+ r = nds32_elf_final_sda_base (output_bfd, info, &gp,
false
);
if (r != bfd_reloc_ok)
{
_bfd_error_handler
(_("%pB: warning: relocate SDA_BASE failed"), input_bfd);
if (r != bfd_reloc_ok)
{
_bfd_error_handler
(_("%pB: warning: relocate SDA_BASE failed"), input_bfd);
- ret =
FALSE
;
+ ret =
false
;
goto check_reloc;
}
goto check_reloc;
}
@@
-5713,7
+5713,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
(_("%pB(%pA): warning: unaligned small data access"
" of type %d"),
input_bfd, input_section, r_type);
(_("%pB(%pA): warning: unaligned small data access"
" of type %d"),
input_bfd, input_section, r_type);
- ret =
FALSE
;
+ ret =
false
;
goto check_reloc;
}
break;
goto check_reloc;
}
break;
@@
-5758,7
+5758,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
BFD_ASSERT (sgot != NULL);
if (h != NULL)
{
BFD_ASSERT (sgot != NULL);
if (h != NULL)
{
- b
fd_boolean
dyn;
+ b
ool
dyn;
off = h->got.offset;
BFD_ASSERT (off != (bfd_vma) -1);
off = h->got.offset;
BFD_ASSERT (off != (bfd_vma) -1);
@@
-5795,13
+5795,13
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
/* The offset must always be a multiple of 4. We use
the least significant bit to record whether we have
already processed this entry. */
/* The offset must always be a multiple of 4. We use
the least significant bit to record whether we have
already processed this entry. */
- b
fd_boolean need_relocs = FALSE
;
+ b
ool need_relocs = false
;
srelgot = ehtab->srelgot;
if ((bfd_link_pic (info) || indx != 0)
&& (h == NULL || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
|| h->root.type != bfd_link_hash_undefweak))
{
srelgot = ehtab->srelgot;
if ((bfd_link_pic (info) || indx != 0)
&& (h == NULL || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
|| h->root.type != bfd_link_hash_undefweak))
{
- need_relocs =
TRUE
;
+ need_relocs =
true
;
BFD_ASSERT (srelgot != NULL);
}
BFD_ASSERT (srelgot != NULL);
}
@@
-6037,7
+6037,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
case bfd_reloc_undefined:
(*info->callbacks->undefined_symbol)
case bfd_reloc_undefined:
(*info->callbacks->undefined_symbol)
- (info, name, input_bfd, input_section, offset,
TRUE
);
+ (info, name, input_bfd, input_section, offset,
true
);
break;
case bfd_reloc_outofrange:
break;
case bfd_reloc_outofrange:
@@
-6074,7
+6074,7
@@
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
/* Finish up dynamic symbol handling. We set the contents of various
dynamic sections here. */
/* Finish up dynamic symbol handling. We set the contents of various
dynamic sections here. */
-static b
fd_boolean
+static b
ool
nds32_elf_finish_dynamic_symbol (bfd *output_bfd, struct bfd_link_info *info,
struct elf_link_hash_entry *h, Elf_Internal_Sym *sym)
{
nds32_elf_finish_dynamic_symbol (bfd *output_bfd, struct bfd_link_info *info,
struct elf_link_hash_entry *h, Elf_Internal_Sym *sym)
{
@@
-6283,13
+6283,13
@@
nds32_elf_finish_dynamic_symbol (bfd *output_bfd, struct bfd_link_info *info,
|| strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
sym->st_shndx = SHN_ABS;
|| strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
sym->st_shndx = SHN_ABS;
- return
TRUE
;
+ return
true
;
}
/* Finish up the dynamic sections. */
}
/* Finish up the dynamic sections. */
-static b
fd_boolean
+static b
ool
nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
{
bfd *dynobj;
nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
{
bfd *dynobj;
@@
-6301,7
+6301,7
@@
nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
ehtab = elf_hash_table (info);
htab = nds32_elf_hash_table (info);
if (htab == NULL)
ehtab = elf_hash_table (info);
htab = nds32_elf_hash_table (info);
if (htab == NULL)
- return
FALSE
;
+ return
false
;
dynobj = elf_hash_table (info)->dynobj;
dynobj = elf_hash_table (info)->dynobj;
@@
-6309,7
+6309,7
@@
nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
/* A broken linker script might have discarded the dynamic sections.
Catch this here so that we do not seg-fault later on. */
if (sgotplt != NULL && bfd_is_abs_section (sgotplt->output_section))
/* A broken linker script might have discarded the dynamic sections.
Catch this here so that we do not seg-fault later on. */
if (sgotplt != NULL && bfd_is_abs_section (sgotplt->output_section))
- return
FALSE
;
+ return
false
;
sdyn = bfd_get_section_by_name (dynobj, ".dynamic");
if (elf_hash_table (info)->dynamic_sections_created)
sdyn = bfd_get_section_by_name (dynobj, ".dynamic");
if (elf_hash_table (info)->dynamic_sections_created)
@@
-6485,13
+6485,13
@@
nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
elf_section_data (sgotplt->output_section)->this_hdr.sh_entsize = 4;
}
elf_section_data (sgotplt->output_section)->this_hdr.sh_entsize = 4;
}
- return
TRUE
;
+ return
true
;
}
\f
/* Set the right machine number. */
}
\f
/* Set the right machine number. */
-static b
fd_boolean
+static b
ool
nds32_elf_object_p (bfd *abfd)
{
static unsigned int cur_arch = 0;
nds32_elf_object_p (bfd *abfd)
{
static unsigned int cur_arch = 0;
@@
-6522,12
+6522,12
@@
nds32_elf_object_p (bfd *abfd)
break;
}
break;
}
- return
TRUE
;
+ return
true
;
}
/* Store the machine number in the flags field. */
}
/* Store the machine number in the flags field. */
-static b
fd_boolean
+static b
ool
nds32_elf_final_write_processing (bfd *abfd)
{
unsigned long val;
nds32_elf_final_write_processing (bfd *abfd)
{
unsigned long val;
@@
-6570,15
+6570,15
@@
nds32_elf_final_write_processing (bfd *abfd)
/* Function to keep NDS32 specific file flags. */
/* Function to keep NDS32 specific file flags. */
-static b
fd_boolean
+static b
ool
nds32_elf_set_private_flags (bfd *abfd, flagword flags)
{
BFD_ASSERT (!elf_flags_init (abfd)
|| elf_elfheader (abfd)->e_flags == flags);
elf_elfheader (abfd)->e_flags = flags;
nds32_elf_set_private_flags (bfd *abfd, flagword flags)
{
BFD_ASSERT (!elf_flags_init (abfd)
|| elf_elfheader (abfd)->e_flags == flags);
elf_elfheader (abfd)->e_flags = flags;
- elf_flags_init (abfd) =
TRUE
;
- return
TRUE
;
+ elf_flags_init (abfd) =
true
;
+ return
true
;
}
static unsigned int
}
static unsigned int
@@
-6609,7
+6609,7
@@
convert_e_flags (unsigned int e_flags, unsigned int arch)
return e_flags;
}
return e_flags;
}
-static b
fd_boolean
+static b
ool
nds32_check_vec_size (bfd *ibfd)
{
static unsigned int nds32_vec_size = 0;
nds32_check_vec_size (bfd *ibfd)
{
static unsigned int nds32_vec_size = 0;
@@
-6624,7
+6624,7
@@
nds32_check_vec_size (bfd *ibfd)
/* Get vec_size in file. */
unsigned int flag_t;
/* Get vec_size in file. */
unsigned int flag_t;
- nds32_get_section_contents (ibfd, sec_t, &contents,
TRUE
);
+ nds32_get_section_contents (ibfd, sec_t, &contents,
true
);
flag_t = bfd_get_32 (ibfd, contents);
/* The value could only be 4 or 16. */
flag_t = bfd_get_32 (ibfd, contents);
/* The value could only be 4 or 16. */
@@
-6641,20
+6641,20
@@
nds32_check_vec_size (bfd *ibfd)
ibfd,
nds32_vec_size == 1 ? 4 : nds32_vec_size == 2 ? 16 : 0xffffffff,
(flag_t & 0x3) == 1 ? 4 : (flag_t & 0x3) == 2 ? 16 : 0xffffffff);
ibfd,
nds32_vec_size == 1 ? 4 : nds32_vec_size == 2 ? 16 : 0xffffffff,
(flag_t & 0x3) == 1 ? 4 : (flag_t & 0x3) == 2 ? 16 : 0xffffffff);
- return
FALSE
;
+ return
false
;
}
else
/* Only keep the first vec_size section. */
sec_t->flags |= SEC_EXCLUDE;
}
}
else
/* Only keep the first vec_size section. */
sec_t->flags |= SEC_EXCLUDE;
}
- return
TRUE
;
+ return
true
;
}
/* Merge backend specific data from an object file to the output
object file when linking. */
}
/* Merge backend specific data from an object file to the output
object file when linking. */
-static b
fd_boolean
+static b
ool
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
bfd *obfd = info->output_bfd;
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
bfd *obfd = info->output_bfd;
@@
-6671,15
+6671,15
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
/* FIXME: What should be checked when linking shared libraries? */
if ((ibfd->flags & DYNAMIC) != 0)
/* FIXME: What should be checked when linking shared libraries? */
if ((ibfd->flags & DYNAMIC) != 0)
- return
TRUE
;
+ return
true
;
/* TODO: Revise to use object-attributes instead. */
if (!nds32_check_vec_size (ibfd))
/* TODO: Revise to use object-attributes instead. */
if (!nds32_check_vec_size (ibfd))
- return
FALSE
;
+ return
false
;
if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
- return
TRUE
;
+ return
true
;
if (bfd_little_endian (ibfd) != bfd_little_endian (obfd))
{
if (bfd_little_endian (ibfd) != bfd_little_endian (obfd))
{
@@
-6687,7
+6687,7
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
(_("%pB: warning: endian mismatch with previous modules"), ibfd);
bfd_set_error (bfd_error_bad_value);
(_("%pB: warning: endian mismatch with previous modules"), ibfd);
bfd_set_error (bfd_error_bad_value);
- return
FALSE
;
+ return
false
;
}
/* -B option in objcopy cannot work as expected. e_flags = 0 shall be
}
/* -B option in objcopy cannot work as expected. e_flags = 0 shall be
@@
-6767,9
+6767,9
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
unitialised values, which surprise surprise, correspond
to the default values. */
if (bfd_get_arch_info (ibfd)->the_default)
unitialised values, which surprise surprise, correspond
to the default values. */
if (bfd_get_arch_info (ibfd)->the_default)
- return
TRUE
;
+ return
true
;
- elf_flags_init (obfd) =
TRUE
;
+ elf_flags_init (obfd) =
true
;
elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
if (bfd_get_arch (obfd) == bfd_get_arch (ibfd)
elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
if (bfd_get_arch (obfd) == bfd_get_arch (ibfd)
@@
-6779,7
+6779,7
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
bfd_get_mach (ibfd));
}
bfd_get_mach (ibfd));
}
- return
TRUE
;
+ return
true
;
}
/* Check flag compatibility. */
}
/* Check flag compatibility. */
@@
-6788,7
+6788,7
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
_bfd_error_handler
(_("%pB: error: ABI mismatch with previous modules"), ibfd);
bfd_set_error (bfd_error_bad_value);
_bfd_error_handler
(_("%pB: error: ABI mismatch with previous modules"), ibfd);
bfd_set_error (bfd_error_bad_value);
- return
FALSE
;
+ return
false
;
}
if ((in_flags & EF_NDS_ARCH) != (out_flags & EF_NDS_ARCH))
}
if ((in_flags & EF_NDS_ARCH) != (out_flags & EF_NDS_ARCH))
@@
-6800,7
+6800,7
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
ibfd);
bfd_set_error (bfd_error_bad_value);
ibfd);
bfd_set_error (bfd_error_bad_value);
- return
FALSE
;
+ return
false
;
}
}
}
}
@@
-6834,12
+6834,12
@@
nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
}
}
}
}
- return
TRUE
;
+ return
true
;
}
/* Display the flags field. */
}
/* Display the flags field. */
-static b
fd_boolean
+static b
ool
nds32_elf_print_private_bfd_data (bfd *abfd, void *ptr)
{
FILE *file = (FILE *) ptr;
nds32_elf_print_private_bfd_data (bfd *abfd, void *ptr)
{
FILE *file = (FILE *) ptr;
@@
-6863,15
+6863,14
@@
nds32_elf_print_private_bfd_data (bfd *abfd, void *ptr)
fputc ('\n', file);
fputc ('\n', file);
- return
TRUE
;
+ return
true
;
}
static unsigned int
nds32_elf_action_discarded (asection *sec)
{
}
static unsigned int
nds32_elf_action_discarded (asection *sec)
{
- if (strncmp
- (".gcc_except_table", sec->name, sizeof (".gcc_except_table") - 1) == 0)
+ if (startswith (sec->name, ".gcc_except_table"))
return 0;
return _bfd_elf_default_action_discarded (sec);
return 0;
return _bfd_elf_default_action_discarded (sec);
@@
-6935,7
+6934,7
@@
get_tls_type (enum elf_nds32_reloc_type r_type,
/* Ensure that we have allocated bookkeeping structures for ABFD's local
symbols. */
/* Ensure that we have allocated bookkeeping structures for ABFD's local
symbols. */
-static b
fd_boolean
+static b
ool
elf32_nds32_allocate_local_sym_info (bfd *abfd)
{
if (elf_local_got_refcounts (abfd) == NULL)
elf32_nds32_allocate_local_sym_info (bfd *abfd)
{
if (elf_local_got_refcounts (abfd) == NULL)
@@
-6949,10
+6948,10
@@
elf32_nds32_allocate_local_sym_info (bfd *abfd)
gp_offset. The details can refer to struct elf_nds32_obj_tdata. */
size = num_syms * (sizeof (bfd_signed_vma) + sizeof (char)
+ sizeof (bfd_vma) + sizeof (int)
gp_offset. The details can refer to struct elf_nds32_obj_tdata. */
size = num_syms * (sizeof (bfd_signed_vma) + sizeof (char)
+ sizeof (bfd_vma) + sizeof (int)
- + sizeof (b
fd_boolean
) + sizeof (bfd_vma));
+ + sizeof (b
ool
) + sizeof (bfd_vma));
data = bfd_zalloc (abfd, size);
if (data == NULL)
data = bfd_zalloc (abfd, size);
if (data == NULL)
- return
FALSE
;
+ return
false
;
elf_local_got_refcounts (abfd) = (bfd_signed_vma *) data;
data += num_syms * sizeof (bfd_signed_vma);
elf_local_got_refcounts (abfd) = (bfd_signed_vma *) data;
data += num_syms * sizeof (bfd_signed_vma);
@@
-6967,14
+6966,14
@@
elf32_nds32_allocate_local_sym_info (bfd *abfd)
data += num_syms * sizeof (int);
}
data += num_syms * sizeof (int);
}
- return
TRUE
;
+ return
true
;
}
/* Look through the relocs for a section during the first phase.
Since we don't do .gots or .plts, we just need to consider the
virtual table relocs for gc. */
}
/* Look through the relocs for a section during the first phase.
Since we don't do .gots or .plts, we just need to consider the
virtual table relocs for gc. */
-static b
fd_boolean
+static b
ool
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
asection *sec, const Elf_Internal_Rela *relocs)
{
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
asection *sec, const Elf_Internal_Rela *relocs)
{
@@
-6991,7
+6990,7
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (bfd_link_relocatable (info))
{
elf32_nds32_check_relax_group (abfd, sec);
if (bfd_link_relocatable (info))
{
elf32_nds32_check_relax_group (abfd, sec);
- return
TRUE
;
+ return
true
;
}
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
}
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
@@
-7059,7
+7058,7
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (dynobj == NULL)
htab->root.dynobj = dynobj = abfd;
if (!create_got_section (dynobj, info))
if (dynobj == NULL)
htab->root.dynobj = dynobj = abfd;
if (!create_got_section (dynobj, info))
- return
FALSE
;
+ return
false
;
break;
default:
break;
default:
@@
-7096,7
+7095,7
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
{
/* This is a global offset table entry for a local symbol. */
if (!elf32_nds32_allocate_local_sym_info (abfd))
{
/* This is a global offset table entry for a local symbol. */
if (!elf32_nds32_allocate_local_sym_info (abfd))
- return
FALSE
;
+ return
false
;
BFD_ASSERT (r_symndx < symtab_hdr->sh_info);
if (tls_type != GOT_TLS_LE)
BFD_ASSERT (r_symndx < symtab_hdr->sh_info);
if (tls_type != GOT_TLS_LE)
@@
-7237,9
+7236,9
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
(abfd, elf_elfheader (abfd)->e_shstrndx,
elf_section_data (sec)->rela.hdr->sh_name);
if (name == NULL)
(abfd, elf_elfheader (abfd)->e_shstrndx,
elf_section_data (sec)->rela.hdr->sh_name);
if (name == NULL)
- return
FALSE
;
+ return
false
;
- BFD_ASSERT (st
rncmp (name, ".rela", 5) == 0
+ BFD_ASSERT (st
artswith (name, ".rela")
&& strcmp (bfd_section_name (sec),
name + 5) == 0);
&& strcmp (bfd_section_name (sec),
name + 5) == 0);
@@
-7256,7
+7255,7
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (sreloc == NULL
|| !bfd_set_section_flags (sreloc, flags)
|| !bfd_set_section_alignment (sreloc, 2))
if (sreloc == NULL
|| !bfd_set_section_flags (sreloc, flags)
|| !bfd_set_section_alignment (sreloc, 2))
- return
FALSE
;
+ return
false
;
elf_section_type (sreloc) = SHT_RELA;
}
elf_section_type (sreloc) = SHT_RELA;
}
@@
-7276,12
+7275,12
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
isym = bfd_sym_from_r_symndx (&htab->root.sym_cache,
abfd, r_symndx);
if (isym == NULL)
isym = bfd_sym_from_r_symndx (&htab->root.sym_cache,
abfd, r_symndx);
if (isym == NULL)
- return
FALSE
;
+ return
false
;
/* Track dynamic relocs needed for local syms too. */
s = bfd_section_from_elf_index (abfd, isym->st_shndx);
if (s == NULL)
/* Track dynamic relocs needed for local syms too. */
s = bfd_section_from_elf_index (abfd, isym->st_shndx);
if (s == NULL)
- return
FALSE
;
+ return
false
;
vpp = &elf_section_data (s)->local_dynrel;
head = (struct elf_dyn_relocs **) vpp;
vpp = &elf_section_data (s)->local_dynrel;
head = (struct elf_dyn_relocs **) vpp;
@@
-7293,7
+7292,7
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
size_t amt = sizeof (*p);
p = (struct elf_dyn_relocs *) bfd_alloc (dynobj, amt);
if (p == NULL)
size_t amt = sizeof (*p);
p = (struct elf_dyn_relocs *) bfd_alloc (dynobj, amt);
if (p == NULL)
- return
FALSE
;
+ return
false
;
p->next = *head;
*head = p;
p->sec = sec;
p->next = *head;
*head = p;
p->sec = sec;
@@
-7353,23
+7352,23
@@
nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
case R_NDS32_RELA_GNU_VTINHERIT:
case R_NDS32_GNU_VTINHERIT:
if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
case R_NDS32_RELA_GNU_VTINHERIT:
case R_NDS32_GNU_VTINHERIT:
if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
- return
FALSE
;
+ return
false
;
break;
/* This relocation describes which C++ vtable entries are actually
used. Record for later use during GC. */
case R_NDS32_GNU_VTENTRY:
if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset))
break;
/* This relocation describes which C++ vtable entries are actually
used. Record for later use during GC. */
case R_NDS32_GNU_VTENTRY:
if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset))
- return
FALSE
;
+ return
false
;
break;
case R_NDS32_RELA_GNU_VTENTRY:
if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
break;
case R_NDS32_RELA_GNU_VTENTRY:
if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
- return
FALSE
;
+ return
false
;
break;
}
}
break;
}
}
- return
TRUE
;
+ return
true
;
}
/* Write VAL in uleb128 format to P, returning a pointer to the
}
/* Write VAL in uleb128 format to P, returning a pointer to the
@@
-8461,7
+8460,7
@@
nds32_convert_16_to_32 (bfd *abfd, uint16_t insn16, uint32_t *pinsn)
}
\f
}
\f
-static b
fd_boolean
+static b
ool
is_sda_access_insn (unsigned long insn)
{
switch (N32_OP6 (insn))
is_sda_access_insn (unsigned long insn)
{
switch (N32_OP6 (insn))
@@
-8478,11
+8477,11
@@
is_sda_access_insn (unsigned long insn)
case N32_OP6_LDC:
case N32_OP6_SWC:
case N32_OP6_SDC:
case N32_OP6_LDC:
case N32_OP6_SWC:
case N32_OP6_SDC:
- return
TRUE
;
+ return
true
;
default:
;
}
default:
;
}
- return
FALSE
;
+ return
false
;
}
static unsigned long
}
static unsigned long
@@
-8684,12
+8683,12
@@
is_16bit_NOP (bfd *abfd ATTRIBUTE_UNUSED,
unsigned short insn16;
if (!(rel->r_addend & R_NDS32_INSN16_CONVERT_FLAG))
unsigned short insn16;
if (!(rel->r_addend & R_NDS32_INSN16_CONVERT_FLAG))
- return
FALSE
;
+ return
false
;
contents = elf_section_data (sec)->this_hdr.contents;
insn16 = bfd_getb16 (contents + rel->r_offset);
if (insn16 == NDS32_NOP16)
contents = elf_section_data (sec)->this_hdr.contents;
insn16 = bfd_getb16 (contents + rel->r_offset);
if (insn16 == NDS32_NOP16)
- return
TRUE
;
- return
FALSE
;
+ return
true
;
+ return
false
;
}
/* It checks whether the instruction could be converted to
}
/* It checks whether the instruction could be converted to
@@
-8717,12
+8716,12
@@
is_convert_32_to_16 (bfd *abfd, asection *sec,
bfd_vma offset;
if (reloc->r_offset + 4 > sec->size)
bfd_vma offset;
if (reloc->r_offset + 4 > sec->size)
- return
FALSE
;
+ return
false
;
offset = reloc->r_offset;
offset = reloc->r_offset;
- if (!nds32_get_section_contents (abfd, sec, &contents,
TRUE
))
- return
FALSE
;
+ if (!nds32_get_section_contents (abfd, sec, &contents,
true
))
+ return
false
;
insn = bfd_getb32 (contents + offset);
if (nds32_convert_32_to_16 (abfd, insn, insn16, NULL))
insn = bfd_getb32 (contents + offset);
if (nds32_convert_32_to_16 (abfd, insn, insn16, NULL))
@@
-8730,11
+8729,11
@@
is_convert_32_to_16 (bfd *abfd, asection *sec,
else if (special_convert_32_to_16 (insn, insn16, reloc))
convert_type = SPECIAL_32_TO_16;
else
else if (special_convert_32_to_16 (insn, insn16, reloc))
convert_type = SPECIAL_32_TO_16;
else
- return
FALSE
;
+ return
false
;
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
if (!nds32_get_local_syms (abfd, sec, &isymbuf))
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
if (!nds32_get_local_syms (abfd, sec, &isymbuf))
- return
FALSE
;
+ return
false
;
/* Find the first relocation of the same relocation-type,
so we iteratie them forward. */
/* Find the first relocation of the same relocation-type,
so we iteratie them forward. */
@@
-8752,7
+8751,7
@@
is_convert_32_to_16 (bfd *abfd, asection *sec,
off = calculate_offset (abfd, sec, pc_rel, isymbuf, symtab_hdr);
if (off >= ACCURATE_8BIT_S1 || off < -ACCURATE_8BIT_S1
|| off == 0)
off = calculate_offset (abfd, sec, pc_rel, isymbuf, symtab_hdr);
if (off >= ACCURATE_8BIT_S1 || off < -ACCURATE_8BIT_S1
|| off == 0)
- return
FALSE
;
+ return
false
;
break;
}
else if (ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_20_RELA)
break;
}
else if (ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_20_RELA)
@@
-8763,7
+8762,7
@@
is_convert_32_to_16 (bfd *abfd, asection *sec,
/* mem_addr is unsigned, but the value should
be between [-16, 15]. */
if ((mem_addr + 0x10) >> 5)
/* mem_addr is unsigned, but the value should
be between [-16, 15]. */
if ((mem_addr + 0x10) >> 5)
- return
FALSE
;
+ return
false
;
break;
}
else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_TLS_LE_20)
break;
}
else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_TLS_LE_20)
@@
-8771,7
+8770,7
@@
is_convert_32_to_16 (bfd *abfd, asection *sec,
{
/* It never happen movi to movi55 for R_NDS32_TLS_LE_20,
because it can be relaxed to addi for TLS_LE_ADD. */
{
/* It never happen movi to movi55 for R_NDS32_TLS_LE_20,
because it can be relaxed to addi for TLS_LE_ADD. */
- return
FALSE
;
+ return
false
;
}
else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_SDA15S2_RELA
|| ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_SDA17S2_RELA)
}
else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_SDA15S2_RELA
|| ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_SDA17S2_RELA)
@@
-8792,18
+8791,18
@@
is_convert_32_to_16 (bfd *abfd, asection *sec,
{
/* Prevent unresolved addi instruction translate
to addi45 or addi333. */
{
/* Prevent unresolved addi instruction translate
to addi45 or addi333. */
- return
FALSE
;
+ return
false
;
}
else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_17IFC_PCREL_RELA))
{
off = calculate_offset (abfd, sec, pc_rel, isymbuf, symtab_hdr);
if (off >= ACCURATE_U9BIT_S1 || off <= 0)
}
else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_17IFC_PCREL_RELA))
{
off = calculate_offset (abfd, sec, pc_rel, isymbuf, symtab_hdr);
if (off >= ACCURATE_U9BIT_S1 || off <= 0)
- return
FALSE
;
+ return
false
;
break;
}
}
break;
}
}
- return
TRUE
;
+ return
true
;
}
static void
}
static void
@@
-9030,7
+9029,7
@@
get_nds32_elf_blank_total (nds32_elf_blank_t **blank_p, bfd_vma addr,
return blank_t->total_size + blank_t->size;
}
return blank_t->total_size + blank_t->size;
}
-static b
fd_boolean
+static b
ool
insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len)
{
nds32_elf_blank_t *blank_t, *blank_t2;
insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len)
{
nds32_elf_blank_t *blank_t, *blank_t2;
@@
-9038,7
+9037,7
@@
insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len)
if (!*blank_p)
{
*blank_p = create_nds32_elf_blank (addr, len);
if (!*blank_p)
{
*blank_p = create_nds32_elf_blank (addr, len);
- return *blank_p
? TRUE : FALSE
;
+ return *blank_p
!= NULL
;
}
blank_t = search_nds32_elf_blank (*blank_p, addr);
}
blank_t = search_nds32_elf_blank (*blank_p, addr);
@@
-9047,13
+9046,13
@@
insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len)
{
blank_t = create_nds32_elf_blank (addr, len);
if (!blank_t)
{
blank_t = create_nds32_elf_blank (addr, len);
if (!blank_t)
- return
FALSE
;
+ return
false
;
while ((*blank_p)->prev != NULL)
*blank_p = (*blank_p)->prev;
blank_t->next = *blank_p;
(*blank_p)->prev = blank_t;
(*blank_p) = blank_t;
while ((*blank_p)->prev != NULL)
*blank_p = (*blank_p)->prev;
blank_t->next = *blank_p;
(*blank_p)->prev = blank_t;
(*blank_p) = blank_t;
- return
TRUE
;
+ return
true
;
}
if (addr < blank_t->offset + blank_t->size)
}
if (addr < blank_t->offset + blank_t->size)
@@
-9066,7
+9065,7
@@
insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len)
{
blank_t2 = create_nds32_elf_blank (addr, len);
if (!blank_t2)
{
blank_t2 = create_nds32_elf_blank (addr, len);
if (!blank_t2)
- return
FALSE
;
+ return
false
;
if (blank_t->next)
{
blank_t->next->prev = blank_t2;
if (blank_t->next)
{
blank_t->next->prev = blank_t2;
@@
-9077,17
+9076,17
@@
insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len)
*blank_p = blank_t2;
}
*blank_p = blank_t2;
}
- return
TRUE
;
+ return
true
;
}
}
-static b
fd_boolean
+static b
ool
insert_nds32_elf_blank_recalc_total (nds32_elf_blank_t **blank_p, bfd_vma addr,
bfd_vma len)
{
nds32_elf_blank_t *blank_t;
if (!insert_nds32_elf_blank (blank_p, addr, len))
insert_nds32_elf_blank_recalc_total (nds32_elf_blank_t **blank_p, bfd_vma addr,
bfd_vma len)
{
nds32_elf_blank_t *blank_t;
if (!insert_nds32_elf_blank (blank_p, addr, len))
- return
FALSE
;
+ return
false
;
blank_t = *blank_p;
blank_t = *blank_p;
@@
-9103,7
+9102,7
@@
insert_nds32_elf_blank_recalc_total (nds32_elf_blank_t **blank_p, bfd_vma addr,
blank_t = blank_t->next;
}
blank_t = blank_t->next;
}
- return
TRUE
;
+ return
true
;
}
static void
}
static void
@@
-9126,7
+9125,7
@@
calc_nds32_blank_total (nds32_elf_blank_t *blank_p)
}
}
}
}
-static b
fd_boolean
+static b
ool
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
nds32_elf_blank_t *blank_p)
{
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
nds32_elf_blank_t *blank_p)
{
@@
-9171,7
+9170,7
@@
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
if (!nds32_get_local_syms (abfd, sec, &isym))
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
if (!nds32_get_local_syms (abfd, sec, &isym))
- return
FALSE
;
+ return
false
;
if (isym == NULL)
{
if (isym == NULL)
{
@@
-9181,7
+9180,7
@@
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
}
if (isym == NULL || symtab_hdr->sh_info == 0)
}
if (isym == NULL || symtab_hdr->sh_info == 0)
- return
FALSE
;
+ return
false
;
blank_t = blank_head;
calc_nds32_blank_total (blank_head);
blank_t = blank_head;
calc_nds32_blank_total (blank_head);
@@
-9192,7
+9191,7
@@
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sect, NULL, NULL,
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sect, NULL, NULL,
-
TRUE
/* keep_memory */);
+
true
/* keep_memory */);
irelend = internal_relocs + sect->reloc_count;
blank_t = blank_head;
irelend = internal_relocs + sect->reloc_count;
blank_t = blank_head;
@@
-9202,7
+9201,7
@@
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
continue;
contents = NULL;
continue;
contents = NULL;
- nds32_get_section_contents (abfd, sect, &contents,
TRUE
);
+ nds32_get_section_contents (abfd, sect, &contents,
true
);
for (irel = internal_relocs; irel < irelend; irel++)
{
for (irel = internal_relocs; irel < irelend; irel++)
{
@@
-9444,14
+9443,14
@@
nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
remove_nds32_elf_blank (blank_t);
}
remove_nds32_elf_blank (blank_t);
}
- return
TRUE
;
+ return
true
;
}
/* Get the contents of a section. */
static int
nds32_get_section_contents (bfd *abfd, asection *sec,
}
/* Get the contents of a section. */
static int
nds32_get_section_contents (bfd *abfd, asection *sec,
- bfd_byte **contents_p, b
fd_boolean
cache)
+ bfd_byte **contents_p, b
ool
cache)
{
/* Get the section contents. */
if (elf_section_data (sec)->this_hdr.contents != NULL)
{
/* Get the section contents. */
if (elf_section_data (sec)->this_hdr.contents != NULL)
@@
-9459,12
+9458,12
@@
nds32_get_section_contents (bfd *abfd, asection *sec,
else
{
if (!bfd_get_full_section_contents (abfd, sec, contents_p))
else
{
if (!bfd_get_full_section_contents (abfd, sec, contents_p))
- return
FALSE
;
+ return
false
;
if (cache)
elf_section_data (sec)->this_hdr.contents = *contents_p;
}
if (cache)
elf_section_data (sec)->this_hdr.contents = *contents_p;
}
- return
TRUE
;
+ return
true
;
}
/* Get the contents of the internal symbol of abfd. */
}
/* Get the contents of the internal symbol of abfd. */
@@
-9486,12
+9485,12
@@
nds32_get_local_syms (bfd *abfd, asection *sec ATTRIBUTE_UNUSED,
symtab_hdr->sh_info, 0,
NULL, NULL, NULL);
if (*isymbuf_p == NULL)
symtab_hdr->sh_info, 0,
NULL, NULL, NULL);
if (*isymbuf_p == NULL)
- return
FALSE
;
+ return
false
;
}
}
symtab_hdr->contents = (bfd_byte *) (*isymbuf_p);
}
}
symtab_hdr->contents = (bfd_byte *) (*isymbuf_p);
- return
TRUE
;
+ return
true
;
}
/* Range of small data. */
}
/* Range of small data. */
@@
-9579,7
+9578,7
@@
static const char * unrecognized_reloc_msg =
/* Relax LONGCALL1 relocation for nds32_elf_relax_section. */
/* Relax LONGCALL1 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-9628,7
+9627,7
@@
nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL1",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL1",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-9638,7
+9637,7
@@
nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
/* Relax to: jal symbol; 25_PCREL. */
/* For simplicity of coding, we are going to modify the section
/* Relax to: jal symbol; 25_PCREL. */
/* For simplicity of coding, we are going to modify the section
@@
-9673,13
+9672,13
@@
nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
lo_irelfn->r_addend = R_NDS32_INSN16_CONVERT_FLAG;
*insn_len += 2;
}
lo_irelfn->r_addend = R_NDS32_INSN16_CONVERT_FLAG;
*insn_len += 2;
}
- return
TRUE
;
+ return
true
;
}
#define CONVERT_CONDITION_CALL(insn) (((insn) & 0xffff0000) ^ 0x90000)
/* Relax LONGCALL2 relocation for nds32_elf_relax_section. */
}
#define CONVERT_CONDITION_CALL(insn) (((insn) & 0xffff0000) ^ 0x90000)
/* Relax LONGCALL2 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-9708,7
+9707,7
@@
nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL2",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL2",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
insn = bfd_getb32 (contents + laddr);
}
insn = bfd_getb32 (contents + laddr);
@@
-9719,7
+9718,7
@@
nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
- return
FALSE
;
+ return
false
;
/* Relax to bgezal rt, label ; 17_PCREL
or bltzal rt, label ; 17_PCREL */
/* Relax to bgezal rt, label ; 17_PCREL
or bltzal rt, label ; 17_PCREL */
@@
-9753,12
+9752,12
@@
nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
bfd_putb32 (insn, contents + irel->r_offset);
*insn_len = 4;
bfd_putb32 (insn, contents + irel->r_offset);
*insn_len = 4;
- return
TRUE
;
+ return
true
;
}
/* Relax LONGCALL3 relocation for nds32_elf_relax_section. */
}
/* Relax LONGCALL3 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-9813,7
+9812,7
@@
nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL3",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL3",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-9822,7
+9821,7
@@
nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
insn = bfd_getb32 (contents + laddr);
if (foff >= -CONSERVATIVE_16BIT_S1 && foff < CONSERVATIVE_16BIT_S1)
insn = bfd_getb32 (contents + laddr);
if (foff >= -CONSERVATIVE_16BIT_S1 && foff < CONSERVATIVE_16BIT_S1)
@@
-9890,12
+9889,12
@@
nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
insn_len += 2;
}
}
insn_len += 2;
}
}
- return
TRUE
;
+ return
true
;
}
/* Relax LONGJUMP1 relocation for nds32_elf_relax_section. */
}
/* Relax LONGJUMP1 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-9946,7
+9945,7
@@
nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP1",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP1",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-9955,7
+9954,7
@@
nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff >= CONSERVATIVE_24BIT_S1
|| foff < -CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff >= CONSERVATIVE_24BIT_S1
|| foff < -CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
if (insn16_on
&& foff >= -ACCURATE_8BIT_S1
if (insn16_on
&& foff >= -ACCURATE_8BIT_S1
@@
-9998,7
+9997,7
@@
nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
lo_irelfn->r_addend = R_NDS32_INSN16_CONVERT_FLAG;
*insn_len += 2;
}
lo_irelfn->r_addend = R_NDS32_INSN16_CONVERT_FLAG;
*insn_len += 2;
}
- return
TRUE
;
+ return
true
;
}
/* Revert condition branch. This function does not check if the input
}
/* Revert condition branch. This function does not check if the input
@@
-10090,7
+10089,7
@@
nds32_elf_convert_branch (uint16_t insn16, uint32_t insn,
/* Relax LONGJUMP2 relocation for nds32_elf_relax_section. */
/* Relax LONGJUMP2 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-10154,7
+10153,7
@@
nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP2",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP2",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10162,7
+10161,7
@@
nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
- return
FALSE
;
+ return
false
;
/* Get the all corresponding instructions. */
if (first_size == 4)
/* Get the all corresponding instructions. */
if (first_size == 4)
@@
-10220,7
+10219,7
@@
nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
cond_reloc = R_NDS32_NONE;
}
else
cond_reloc = R_NDS32_NONE;
}
else
- return
FALSE
;
+ return
false
;
/* Set all relocations. */
irel->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info), reloc);
/* Set all relocations. */
irel->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info), reloc);
@@
-10243,12
+10242,12
@@
nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
else
i2_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info),
R_NDS32_NONE);
else
i2_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info),
R_NDS32_NONE);
- return
TRUE
;
+ return
true
;
}
/* Relax LONGJUMP3 relocation for nds32_elf_relax_section. */
}
/* Relax LONGJUMP3 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-10347,7
+10346,7
@@
nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP3",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP3",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10356,7
+10355,7
@@
nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
/* Get the all corresponding instructions. */
if (first_size == 4)
/* Get the all corresponding instructions. */
if (first_size == 4)
@@
-10457,7
+10456,7
@@
nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
cond_reloc = R_NDS32_25_PLTREL;
}
else
cond_reloc = R_NDS32_25_PLTREL;
}
else
- return
FALSE
;
+ return
false
;
if (cond_removed == 1)
{
if (cond_removed == 1)
{
@@
-10492,12
+10491,12
@@
nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
else
lo_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (lo_irelfn->r_info),
R_NDS32_NONE);
else
lo_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (lo_irelfn->r_info),
R_NDS32_NONE);
- return
TRUE
;
+ return
true
;
}
/* Relax LONGCALL4 relocation for nds32_elf_relax_section. */
}
/* Relax LONGCALL4 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-10527,7
+10526,7
@@
nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10537,7
+10536,7
@@
nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
/* Relax to: jal symbol; 25_PCREL. */
/* For simplicity of coding, we are going to modify the section
/* Relax to: jal symbol; 25_PCREL. */
/* For simplicity of coding, we are going to modify the section
@@
-10557,12
+10556,12
@@
nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Check these is enough space to insert jal in R_NDS32_EMPTY. */
insn = bfd_getb32 (contents + irel->r_addend);
if (insn & 0x80000000)
}
/* Check these is enough space to insert jal in R_NDS32_EMPTY. */
insn = bfd_getb32 (contents + irel->r_addend);
if (insn & 0x80000000)
- return
FALSE
;
+ return
false
;
/* Replace the long call with a jal. */
em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info),
/* Replace the long call with a jal. */
em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info),
@@
-10592,12
+10591,12
@@
nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
insn_irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_NDS32_NONE);
insn_irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_NDS32_NONE);
- return
TRUE
;
+ return
true
;
}
/* Relax LONGCALL5 relocation for nds32_elf_relax_section. */
}
/* Relax LONGCALL5 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-10627,7
+10626,7
@@
nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL5",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL5",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10636,7
+10635,7
@@
nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
- return
FALSE
;
+ return
false
;
/* Relax to bgezal rt, label ; 17_PCREL
or bltzal rt, label ; 17_PCREL. */
/* Relax to bgezal rt, label ; 17_PCREL
or bltzal rt, label ; 17_PCREL. */
@@
-10668,12
+10667,12
@@
nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
cond_irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), R_NDS32_NONE);
cond_irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), R_NDS32_NONE);
- return
TRUE
;
+ return
true
;
}
/* Relax LONGCALL6 relocation for nds32_elf_relax_section. */
}
/* Relax LONGCALL6 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-10704,7
+10703,7
@@
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL6",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL6",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10713,12
+10712,12
@@
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
/* Check these is enough space to insert jal in R_NDS32_EMPTY. */
insn = bfd_getb32 (contents + irel->r_addend);
if (insn & 0x80000000)
/* Check these is enough space to insert jal in R_NDS32_EMPTY. */
insn = bfd_getb32 (contents + irel->r_addend);
if (insn & 0x80000000)
- return
FALSE
;
+ return
false
;
insn = bfd_getb32 (contents + laddr);
if (foff >= -CONSERVATIVE_16BIT_S1 && foff < CONSERVATIVE_16BIT_S1)
insn = bfd_getb32 (contents + laddr);
if (foff >= -CONSERVATIVE_16BIT_S1 && foff < CONSERVATIVE_16BIT_S1)
@@
-10742,7
+10741,7
@@
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd,
"R_NDS32_LONGCALL6", (uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd,
"R_NDS32_LONGCALL6", (uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
cond_irel->r_addend = 1;
}
cond_irel->r_addend = 1;
@@
-10791,7
+10790,7
@@
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd,
"R_NDS32_LONGCALL6", (uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd,
"R_NDS32_LONGCALL6", (uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
cond_irel->r_addend = 1;
}
cond_irel->r_addend = 1;
@@
-10802,12
+10801,12
@@
nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
cond_irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), R_NDS32_NONE);
}
cond_irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), R_NDS32_NONE);
}
- return
TRUE
;
+ return
true
;
}
/* Relax LONGJUMP4 relocation for nds32_elf_relax_section. */
}
/* Relax LONGJUMP4 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
@@
-10840,7
+10839,7
@@
nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10849,7
+10848,7
@@
nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff >= CONSERVATIVE_24BIT_S1
|| foff < -CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff >= CONSERVATIVE_24BIT_S1
|| foff < -CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
/* Convert it to "j label", it may be converted to j8 in the final
pass of relaxation. Therefore, we do not consider this currently. */
/* Convert it to "j label", it may be converted to j8 in the final
pass of relaxation. Therefore, we do not consider this currently. */
@@
-10862,7
+10861,7
@@
nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
em_irel->r_info =
}
em_irel->r_info =
@@
-10886,12
+10885,12
@@
nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
ELF32_R_INFO (ELF32_R_SYM (hi_irel->r_info), R_NDS32_NONE);
}
ELF32_R_INFO (ELF32_R_SYM (hi_irel->r_info), R_NDS32_NONE);
}
- return
TRUE
;
+ return
true
;
}
/* Relax LONGJUMP5 relocation for nds32_elf_relax_section. */
}
/* Relax LONGJUMP5 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents,
nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents,
@@
-10935,7
+10934,7
@@
nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP5",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP5",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-10944,7
+10943,7
@@
nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_16BIT_S1
|| foff >= CONSERVATIVE_16BIT_S1)
- return
FALSE
;
+ return
false
;
/* Get the all corresponding instructions. */
insn = bfd_getb32 (contents + laddr);
/* Get the all corresponding instructions. */
insn = bfd_getb32 (contents + laddr);
@@
-10980,7
+10979,7
@@
nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
reloc = R_NDS32_WORD_9_PCREL_RELA;
}
else
reloc = R_NDS32_WORD_9_PCREL_RELA;
}
else
- return
FALSE
;
+ return
false
;
/* Set all relocations. */
cond_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), reloc);
/* Set all relocations. */
cond_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), reloc);
@@
-11010,12
+11009,12
@@
nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
}
*insn_len = 0;
}
*insn_len = 0;
- return
TRUE
;
+ return
true
;
}
/* Relax LONGJUMP6 relocation for nds32_elf_relax_section. */
}
/* Relax LONGJUMP6 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents,
nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents,
@@
-11063,7
+11062,7
@@
nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP6",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP6",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-11072,7
+11071,7
@@
nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_24BIT_S1
|| foff >= CONSERVATIVE_24BIT_S1)
- return
FALSE
;
+ return
false
;
insn = bfd_getb32 (contents + laddr);
/* Check instruction size. */
insn = bfd_getb32 (contents + laddr);
/* Check instruction size. */
@@
-11130,7
+11129,7
@@
nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
bfd_putb32 (insn, contents + em_irel->r_offset);
}
else
bfd_putb32 (insn, contents + em_irel->r_offset);
}
else
- return
FALSE
;
+ return
false
;
/* Set all relocations. */
em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info), reloc);
/* Set all relocations. */
em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info), reloc);
@@
-11190,12
+11189,12
@@
nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_LONGJUMP5);
}
R_NDS32_LONGJUMP5);
}
- return
TRUE
;
+ return
true
;
}
/* Relax LONGJUMP7 relocation for nds32_elf_relax_section. */
}
/* Relax LONGJUMP7 relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents,
nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents,
@@
-11232,7
+11231,7
@@
nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP7",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP7",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
/* Get the value of the symbol referred to by the reloc. */
}
/* Get the value of the symbol referred to by the reloc. */
@@
-11241,7
+11240,7
@@
nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (foff == 0
|| foff < -CONSERVATIVE_8BIT_S1
|| foff >= CONSERVATIVE_8BIT_S1)
if (foff == 0
|| foff < -CONSERVATIVE_8BIT_S1
|| foff >= CONSERVATIVE_8BIT_S1)
- return
FALSE
;
+ return
false
;
/* Get the first instruction for its size. */
insn = bfd_getb32 (contents + laddr);
/* Get the first instruction for its size. */
insn = bfd_getb32 (contents + laddr);
@@
-11290,7
+11289,7
@@
nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
}
*insn_len = 0;
}
*insn_len = 0;
- return
TRUE
;
+ return
true
;
}
/* We figure out and reassign the best gp value in nds32_elf_final_sda_base
}
/* We figure out and reassign the best gp value in nds32_elf_final_sda_base
@@
-11298,16
+11297,16
@@
nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
the truncated to fit errors for the the converted gp instructions.
Therefore, we must reserve the minimum but safe enough size to prevent it. */
the truncated to fit errors for the the converted gp instructions.
Therefore, we must reserve the minimum but safe enough size to prevent it. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
- Elf_Internal_Rela *irel, b
fd_boolean
*again,
- b
fd_boolean
init,
+ Elf_Internal_Rela *irel, b
ool
*again,
+ b
ool
init,
struct elf_nds32_link_hash_table *table,
Elf_Internal_Sym *isymbuf, Elf_Internal_Shdr *symtab_hdr)
{
int offset_to_gp;
struct elf_nds32_link_hash_table *table,
Elf_Internal_Sym *isymbuf, Elf_Internal_Shdr *symtab_hdr)
{
int offset_to_gp;
- static b
fd_boolean sec_pass = FALSE
;
+ static b
ool sec_pass = false
;
static asection *first_sec = NULL, *sym_sec;
/* Record the number of instructions which may be removed. */
static int count = 0, record_count;
static asection *first_sec = NULL, *sym_sec;
/* Record the number of instructions which may be removed. */
static int count = 0, record_count;
@@
-11321,7
+11320,7
@@
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
/* Force doing relaxation when hyper-relax is high. */
if (table->hyper_relax == 2)
/* Force doing relaxation when hyper-relax is high. */
if (table->hyper_relax == 2)
- return
TRUE
;
+ return
true
;
/* Do not relax the load/store patterns for the first
relax round. */
/* Do not relax the load/store patterns for the first
relax round. */
@@
-11333,13
+11332,13
@@
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
{
record_count = count;
count = 0;
{
record_count = count;
count = 0;
- sec_pass =
TRUE
;
+ sec_pass =
true
;
}
if (!sec_pass)
}
if (!sec_pass)
- *again =
TRUE
;
+ *again =
true
;
- return
TRUE
;
+ return
true
;
}
/* Generally, _SDA_BASE_ is fixed or smaller. But the large
}
/* Generally, _SDA_BASE_ is fixed or smaller. But the large
@@
-11369,7
+11368,7
@@
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
{
/* Forbid doing relaxation when hyper-relax is low. */
if (table->hyper_relax == 0)
{
/* Forbid doing relaxation when hyper-relax is low. */
if (table->hyper_relax == 0)
- return
FALSE
;
+ return
false
;
offset_to_gp = *access_addr - local_sda;
if (elf32_nds32_hash_entry (h)->offset_to_gp == 0)
offset_to_gp = *access_addr - local_sda;
if (elf32_nds32_hash_entry (h)->offset_to_gp == 0)
@@
-11391,7
+11390,7
@@
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
{
/* Local symbols. */
if (!elf32_nds32_allocate_local_sym_info (abfd))
{
/* Local symbols. */
if (!elf32_nds32_allocate_local_sym_info (abfd))
- return
FALSE
;
+ return
false
;
isym = isymbuf + r_symndx;
sym_sec = bfd_section_from_elf_index (abfd, isym->st_shndx);
isym = isymbuf + r_symndx;
sym_sec = bfd_section_from_elf_index (abfd, isym->st_shndx);
@@
-11399,7
+11398,7
@@
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
{
/* Forbid doing relaxation when hyper-relax is low. */
if (table->hyper_relax == 0)
{
/* Forbid doing relaxation when hyper-relax is low. */
if (table->hyper_relax == 0)
- return
FALSE
;
+ return
false
;
offset_to_gp = *access_addr - local_sda;
if (elf32_nds32_local_gp_offset (abfd)[r_symndx] == 0)
offset_to_gp = *access_addr - local_sda;
if (elf32_nds32_local_gp_offset (abfd)[r_symndx] == 0)
@@
-11418,14
+11417,14
@@
nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec,
}
}
}
}
- return
TRUE
;
+ return
true
;
}
#define GET_LOADSTORE_RANGE(addend) (((addend) >> 8) & 0x3f)
/* Relax LOADSTORE relocation for nds32_elf_relax_section. */
}
#define GET_LOADSTORE_RANGE(addend) (((addend) >> 8) & 0x3f)
/* Relax LOADSTORE relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
@@
-11470,12
+11469,12
@@
nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
if (i != 0)
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LOADSTORE",
(uint64_t) irel->r_offset);
if (i != 0)
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LOADSTORE",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
range_type = GET_LOADSTORE_RANGE (irel->r_addend);
nds32_elf_final_sda_base (sec->output_section->owner,
}
range_type = GET_LOADSTORE_RANGE (irel->r_addend);
nds32_elf_final_sda_base (sec->output_section->owner,
- link_info, &local_sda,
FALSE
);
+ link_info, &local_sda,
false
);
switch (ELF32_R_TYPE (hi_irelfn->r_info))
{
switch (ELF32_R_TYPE (hi_irelfn->r_info))
{
@@
-11505,15
+11504,15
@@
nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
break;
}
else if (!nds32_elf_relax_guard (&access_addr, local_sda, sec, hi_irelfn,
break;
}
else if (!nds32_elf_relax_guard (&access_addr, local_sda, sec, hi_irelfn,
- NULL,
FALSE
, table, isymbuf, symtab_hdr))
- return
FALSE
;
+ NULL,
false
, table, isymbuf, symtab_hdr))
+ return
false
;
if (!load_store_relax)
if (!load_store_relax)
- return
FALSE
;
+ return
false
;
/* Case for set gp register. */
if (N32_RT5 (insn) == REG_GP)
/* Case for set gp register. */
if (N32_RT5 (insn) == REG_GP)
- return
FALSE
;
+ return
false
;
if (range_type == NDS32_LOADSTORE_FLOAT_S
|| range_type == NDS32_LOADSTORE_FLOAT_D)
if (range_type == NDS32_LOADSTORE_FLOAT_S
|| range_type == NDS32_LOADSTORE_FLOAT_D)
@@
-11529,7
+11528,7
@@
nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
break;
default:
break;
default:
- return
FALSE
;
+ return
false
;
}
/* Delete sethi instruction. */
}
/* Delete sethi instruction. */
@@
-11542,10
+11541,10
@@
nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_NDS32_NONE);
*insn_len = 0;
irel->r_info =
ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_NDS32_NONE);
*insn_len = 0;
- return
TRUE
;
+ return
true
;
}
}
- return
FALSE
;
+ return
false
;
}
/* Relax LO12 relocation for nds32_elf_relax_section. */
}
/* Relax LO12 relocation for nds32_elf_relax_section. */
@@
-11568,7
+11567,7
@@
nds32_elf_relax_lo12 (struct bfd_link_info *link_info, bfd *abfd,
/* For SDA base relative relaxation. */
nds32_elf_final_sda_base (sec->output_section->owner, link_info,
/* For SDA base relative relaxation. */
nds32_elf_final_sda_base (sec->output_section->owner, link_info,
- &local_sda,
FALSE
);
+ &local_sda,
false
);
irelend = internal_relocs + sec->reloc_count;
laddr = irel->r_offset;
irelend = internal_relocs + sec->reloc_count;
laddr = irel->r_offset;
@@
-11601,7
+11600,7
@@
nds32_elf_relax_lo12 (struct bfd_link_info *link_info, bfd *abfd,
/* Fall through. */
}
else if (!nds32_elf_relax_guard (&access_addr, local_sda, sec, irel, NULL,
/* Fall through. */
}
else if (!nds32_elf_relax_guard (&access_addr, local_sda, sec, irel, NULL,
-
FALSE
, table, isymbuf, symtab_hdr))
+
false
, table, isymbuf, symtab_hdr))
return;
range_l = sdata_range[1][0];
return;
range_l = sdata_range[1][0];
@@
-11665,7
+11664,7
@@
nds32_elf_relax_lo12 (struct bfd_link_info *link_info, bfd *abfd,
/* Relax PTR relocation for nds32_elf_relax_section. */
/* Relax PTR relocation for nds32_elf_relax_section. */
-static b
fd_boolean
+static b
ool
nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents)
nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs, int *insn_len,
int *seq_len, bfd_byte *contents)
@@
-11682,11
+11681,11
@@
nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_PTR",
(uint64_t) irel->r_offset);
{
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_PTR",
(uint64_t) irel->r_offset);
- return
FALSE
;
+ return
false
;
}
if (re_irel->r_addend != 1)
}
if (re_irel->r_addend != 1)
- return
FALSE
;
+ return
false
;
/* Pointed target is relaxed and no longer needs this void *,
change the type to NONE. */
/* Pointed target is relaxed and no longer needs this void *,
change the type to NONE. */
@@
-11702,16
+11701,16
@@
nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (count_irel != irelend)
{
if (--count_irel->r_addend > 0)
if (count_irel != irelend)
{
if (--count_irel->r_addend > 0)
- return
FALSE
;
+ return
false
;
}
if (ptr_irel != irelend)
}
if (ptr_irel != irelend)
- return
FALSE
;
+ return
false
;
/* If the PTR_COUNT is already 0, remove current instruction. */
*seq_len = nds32_elf_insn_size (abfd, contents, irel->r_offset);
*insn_len = 0;
/* If the PTR_COUNT is already 0, remove current instruction. */
*seq_len = nds32_elf_insn_size (abfd, contents, irel->r_offset);
*insn_len = 0;
- return
TRUE
;
+ return
true
;
}
/* Relax LWC relocation for nds32_elf_relax_section. */
}
/* Relax LWC relocation for nds32_elf_relax_section. */
@@
-11721,7
+11720,7
@@
nds32_elf_relax_flsi (struct bfd_link_info *link_info, bfd *abfd,
asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
asection *sec, Elf_Internal_Rela *irel,
Elf_Internal_Rela *internal_relocs,
bfd_byte *contents, Elf_Internal_Sym *isymbuf,
- Elf_Internal_Shdr *symtab_hdr, b
fd_boolean
*again)
+ Elf_Internal_Shdr *symtab_hdr, b
ool
*again)
{
/* Pattern:
sethi ra, hi20(symbol) ; HI20/LOADSTORE
{
/* Pattern:
sethi ra, hi20(symbol) ; HI20/LOADSTORE
@@
-11769,7
+11768,7
@@
nds32_elf_relax_flsi (struct bfd_link_info *link_info, bfd *abfd,
/* For SDA base relative relaxation. */
nds32_elf_final_sda_base (sec->output_section->owner, link_info,
/* For SDA base relative relaxation. */
nds32_elf_final_sda_base (sec->output_section->owner, link_info,
- &local_sda,
FALSE
);
+ &local_sda,
false
);
access_addr = calculate_memory_address (abfd, irel, isymbuf, symtab_hdr);
flsi_offset = (insn & 0xfff) << 2;
access_addr += flsi_offset;
access_addr = calculate_memory_address (abfd, irel, isymbuf, symtab_hdr);
flsi_offset = (insn & 0xfff) << 2;
access_addr += flsi_offset;
@@
-11788,11
+11787,11
@@
nds32_elf_relax_flsi (struct bfd_link_info *link_info, bfd *abfd,
bfd_putb32 (insn, contents + re_irel->r_offset);
re_irel->r_addend |= 1;
bfd_putb32 (insn, contents + re_irel->r_offset);
re_irel->r_addend |= 1;
- *again =
TRUE
;
+ *again =
true
;
}
}
}
}
-static b
fd_boolean
+static b
ool
nds32_relax_adjust_label (bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs,
bfd_byte *contents,
nds32_relax_adjust_label (bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs,
bfd_byte *contents,
@@
-11933,13
+11932,13
@@
nds32_relax_adjust_label (bfd *abfd, asection *sec,
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset + 2, 2))
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset + 2, 2))
- return
FALSE
;
+ return
false
;
}
else if (is_16bit_NOP (abfd, sec, insn_rel))
{
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset, 2))
}
else if (is_16bit_NOP (abfd, sec, insn_rel))
{
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset, 2))
- return
FALSE
;
+ return
false
;
}
insn_rel->r_info =
ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), R_NDS32_NONE);
}
insn_rel->r_info =
ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), R_NDS32_NONE);
@@
-11974,7
+11973,7
@@
nds32_relax_adjust_label (bfd *abfd, asection *sec,
{
/* Check if there is case which can not be aligned. */
if (irel->r_addend == 2 && address & 0x2)
{
/* Check if there is case which can not be aligned. */
if (irel->r_addend == 2 && address & 0x2)
- return
FALSE
;
+ return
false
;
continue;
}
continue;
}
@@
-12017,13
+12016,13
@@
nds32_relax_adjust_label (bfd *abfd, asection *sec,
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset + 2, 2))
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset + 2, 2))
- return
FALSE
;
+ return
false
;
}
else if (is_16bit_NOP (abfd, sec, insn_rel))
{
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset, 2))
}
else if (is_16bit_NOP (abfd, sec, insn_rel))
{
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset, 2))
- return
FALSE
;
+ return
false
;
}
}
}
}
@@
-12043,7
+12042,7
@@
nds32_relax_adjust_label (bfd *abfd, asection *sec,
irelend, insn16);
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset + 2, 2))
irelend, insn16);
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset + 2, 2))
- return
FALSE
;
+ return
false
;
insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info),
R_NDS32_NONE);
}
insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info),
R_NDS32_NONE);
}
@@
-12051,18
+12050,18
@@
nds32_relax_adjust_label (bfd *abfd, asection *sec,
{
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset, 2))
{
if (!insert_nds32_elf_blank_recalc_total
(relax_blank_list, insn_rel->r_offset, 2))
- return
FALSE
;
+ return
false
;
insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info),
R_NDS32_NONE);
}
}
insn_rel = NULL;
insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info),
R_NDS32_NONE);
}
}
insn_rel = NULL;
- return
TRUE
;
+ return
true
;
}
}
-static b
fd_boolean
+static b
ool
nds32_elf_relax_section (bfd *abfd, asection *sec,
nds32_elf_relax_section (bfd *abfd, asection *sec,
- struct bfd_link_info *link_info, b
fd_boolean
*again)
+ struct bfd_link_info *link_info, b
ool
*again)
{
nds32_elf_blank_t *relax_blank_list = NULL;
Elf_Internal_Shdr *symtab_hdr;
{
nds32_elf_blank_t *relax_blank_list = NULL;
Elf_Internal_Shdr *symtab_hdr;
@@
-12071,7
+12070,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
Elf_Internal_Rela *irelend;
Elf_Internal_Sym *isymbuf = NULL;
bfd_byte *contents = NULL;
Elf_Internal_Rela *irelend;
Elf_Internal_Sym *isymbuf = NULL;
bfd_byte *contents = NULL;
- b
fd_boolean result = TRUE
;
+ b
ool result = true
;
int optimize = 0;
int opt_size = 0;
uint32_t insn;
int optimize = 0;
int opt_size = 0;
uint32_t insn;
@@
-12083,7
+12082,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
relax_blank_list = NULL;
relax_blank_list = NULL;
- *again =
FALSE
;
+ *again =
false
;
/* Nothing to do for
* relocatable link or
/* Nothing to do for
* relocatable link or
@@
-12097,13
+12096,13
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
|| (sec->flags & SEC_CODE) == 0
|| sec->size == 0
|| sec->reloc_count == 0)
|| (sec->flags & SEC_CODE) == 0
|| sec->size == 0
|| sec->reloc_count == 0)
- return
TRUE
;
+ return
true
;
/* 09.12.11 Workaround. */
/* We have to adjust align for R_NDS32_LABEL if needed.
The adjust approach only can fix 2-byte align once. */
if (sec->alignment_power > 2)
/* 09.12.11 Workaround. */
/* We have to adjust align for R_NDS32_LABEL if needed.
The adjust approach only can fix 2-byte align once. */
if (sec->alignment_power > 2)
- return
TRUE
;
+ return
true
;
/* Do TLS model conversion once at first. */
nds32_elf_unify_tls_model (abfd, sec, contents, link_info);
/* Do TLS model conversion once at first. */
nds32_elf_unify_tls_model (abfd, sec, contents, link_info);
@@
-12115,7
+12114,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
/* Save the first section for abs symbol relaxation.
This is used for checking gp relaxation in the
nds32_elf_relax_loadstore and nds32_elf_relax_lo12. */
/* Save the first section for abs symbol relaxation.
This is used for checking gp relaxation in the
nds32_elf_relax_loadstore and nds32_elf_relax_lo12. */
- nds32_elf_relax_guard (NULL, 0, sec, NULL, again,
TRUE
,
+ nds32_elf_relax_guard (NULL, 0, sec, NULL, again,
true
,
table, NULL, NULL);
/* The begining of general relaxation. */
table, NULL, NULL);
/* The begining of general relaxation. */
@@
-12125,14
+12124,14
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
bfd_vma gp;
is_SDA_BASE_set = 1;
nds32_elf_final_sda_base (sec->output_section->owner, link_info,
bfd_vma gp;
is_SDA_BASE_set = 1;
nds32_elf_final_sda_base (sec->output_section->owner, link_info,
- &gp,
FALSE
);
+ &gp,
false
);
relax_range_measurement (abfd, link_info);
}
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
relax_range_measurement (abfd, link_info);
}
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
-
TRUE
/* keep_memory */);
+
true
/* keep_memory */);
if (internal_relocs == NULL)
goto error_return;
if (internal_relocs == NULL)
goto error_return;
@@
-12141,12
+12140,12
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
irelend, R_NDS32_RELAX_ENTRY);
if (irel == irelend)
irelend, R_NDS32_RELAX_ENTRY);
if (irel == irelend)
- return
TRUE
;
+ return
true
;
if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_ENTRY)
{
if (irel->r_addend & R_NDS32_RELAX_ENTRY_DISABLE_RELAX_FLAG)
if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_ENTRY)
{
if (irel->r_addend & R_NDS32_RELAX_ENTRY_DISABLE_RELAX_FLAG)
- return
TRUE
;
+ return
true
;
if (irel->r_addend & R_NDS32_RELAX_ENTRY_OPTIMIZE_FLAG)
optimize = 1;
if (irel->r_addend & R_NDS32_RELAX_ENTRY_OPTIMIZE_FLAG)
optimize = 1;
@@
-12159,7
+12158,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
/* Get symbol table and section content. */
contents = NULL;
/* Get symbol table and section content. */
contents = NULL;
- if (!nds32_get_section_contents (abfd, sec, &contents,
TRUE
)
+ if (!nds32_get_section_contents (abfd, sec, &contents,
true
)
|| !nds32_get_local_syms (abfd, sec, &isymbuf))
goto error_return;
|| !nds32_get_local_syms (abfd, sec, &isymbuf))
goto error_return;
@@
-12169,7
+12168,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
{
int seq_len; /* Original length of instruction sequence. */
int insn_len = 0; /* Final length of instruction sequence. */
{
int seq_len; /* Original length of instruction sequence. */
int insn_len = 0; /* Final length of instruction sequence. */
- b
fd_boolean
removed;
+ b
ool
removed;
insn = 0;
if (ELF32_R_TYPE (irel->r_info) == R_NDS32_LABEL
insn = 0;
if (ELF32_R_TYPE (irel->r_info) == R_NDS32_LABEL
@@
-12237,7
+12236,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
continue;
insn_len = seq_len;
continue;
insn_len = seq_len;
- removed =
FALSE
;
+ removed =
false
;
switch (ELF32_R_TYPE (irel->r_info))
{
switch (ELF32_R_TYPE (irel->r_info))
{
@@
-12353,7
+12352,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
(&relax_blank_list, irel->r_offset + insn_len,
seq_len - insn_len))
goto error_return;
(&relax_blank_list, irel->r_offset + insn_len,
seq_len - insn_len))
goto error_return;
- *again =
TRUE
;
+ *again =
true
;
}
}
}
}
@@
-12434,7
+12433,7
@@
nds32_elf_relax_section (bfd *abfd, asection *sec,
return result;
error_return:
return result;
error_return:
- result =
FALSE
;
+ result =
false
;
goto finish;
}
goto finish;
}
@@
-12445,19
+12444,19
@@
static struct bfd_elf_special_section const nds32_elf_special_sections[] =
{NULL, 0, 0, 0, 0}
};
{NULL, 0, 0, 0, 0}
};
-static b
fd_boolean
+static b
ool
nds32_elf_section_flags (const Elf_Internal_Shdr *hdr)
{
const char *name = hdr->bfd_section->name;
nds32_elf_section_flags (const Elf_Internal_Shdr *hdr)
{
const char *name = hdr->bfd_section->name;
- if (st
rncmp (name, ".sbss", 5) == 0
- || st
rncmp (name, ".sdata", 6) == 0
)
+ if (st
artswith (name, ".sbss")
+ || st
artswith (name, ".sdata")
)
hdr->bfd_section->flags |= SEC_SMALL_DATA;
hdr->bfd_section->flags |= SEC_SMALL_DATA;
- return
TRUE
;
+ return
true
;
}
}
-static b
fd_boolean
+static b
ool
nds32_elf_output_arch_syms (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info,
void *finfo ATTRIBUTE_UNUSED,
nds32_elf_output_arch_syms (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info,
void *finfo ATTRIBUTE_UNUSED,
@@
-12476,7
+12475,7
@@
nds32_elf_output_arch_syms (bfd *output_bfd ATTRIBUTE_UNUSED,
if (check_start_export_sym)
fprintf (sym_ld_script, "}\n");
if (check_start_export_sym)
fprintf (sym_ld_script, "}\n");
- return
TRUE
;
+ return
true
;
}
static enum elf_reloc_type_class
}
static enum elf_reloc_type_class
@@
-12705,7
+12704,7
@@
nds32_fag_find_base (struct nds32_fag *head, struct nds32_fag **bestpp)
`best_fag' is the best fp-base. Only those inside the window
of best_fag is applied the flag. */
`best_fag' is the best fp-base. Only those inside the window
of best_fag is applied the flag. */
-static b
fd_boolean
+static b
ool
nds32_fag_mark_relax (struct bfd_link_info *link_info,
asection *sec, struct nds32_fag *best_fag,
Elf_Internal_Rela *internal_relocs,
nds32_fag_mark_relax (struct bfd_link_info *link_info,
asection *sec, struct nds32_fag *best_fag,
Elf_Internal_Rela *internal_relocs,
@@
-12716,12
+12715,12
@@
nds32_fag_mark_relax (struct bfd_link_info *link_info,
bfd *output_bfd;
output_bfd = sec->output_section->owner;
bfd *output_bfd;
output_bfd = sec->output_section->owner;
- nds32_elf_final_sda_base (output_bfd, link_info, &gp,
FALSE
);
+ nds32_elf_final_sda_base (output_bfd, link_info, &gp,
false
);
best_fpbase = best_fag->addr;
if (best_fpbase > gp + sdata_range[1][1]
|| best_fpbase < gp - sdata_range[1][0])
best_fpbase = best_fag->addr;
if (best_fpbase > gp + sdata_range[1][1]
|| best_fpbase < gp - sdata_range[1][0])
- return
FALSE
;
+ return
false
;
/* Mark these inside the window R_NDS32_INSN16_FP7U2_FLAG flag,
so we know they can be converted to lwi37.fp. */
/* Mark these inside the window R_NDS32_INSN16_FP7U2_FLAG flag,
so we know they can be converted to lwi37.fp. */
@@
-12747,7
+12746,7
@@
nds32_fag_mark_relax (struct bfd_link_info *link_info,
insn16_rel->r_addend = R_NDS32_INSN16_FP7U2_FLAG;
}
}
insn16_rel->r_addend = R_NDS32_INSN16_FP7U2_FLAG;
}
}
- return
TRUE
;
+ return
true
;
}
/* Reset INSN16 to clean fp as gp. */
}
/* Reset INSN16 to clean fp as gp. */
@@
-12781,7
+12780,7
@@
nds32_fag_unmark_relax (struct nds32_fag *fag,
/* This is the main function of fp-as-gp optimization.
It should be called by relax_section. */
/* This is the main function of fp-as-gp optimization.
It should be called by relax_section. */
-static b
fd_boolean
+static b
ool
nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs,
nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs,
@@
-12793,7
+12792,7
@@
nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
struct nds32_fag fag_head;
Elf_Internal_Shdr *symtab_hdr;
bfd_byte *contents;
struct nds32_fag fag_head;
Elf_Internal_Shdr *symtab_hdr;
bfd_byte *contents;
- b
fd_boolean ifc_inside = FALSE
;
+ b
ool ifc_inside = false
;
/* FIXME: Can we bfd_elf_link_read_relocs for the relocs? */
/* FIXME: Can we bfd_elf_link_read_relocs for the relocs? */
@@
-12817,9
+12816,9
@@
nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
contents = NULL;
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
contents = NULL;
- if (!nds32_get_section_contents (abfd, sec, &contents,
TRUE
)
+ if (!nds32_get_section_contents (abfd, sec, &contents,
true
)
|| !nds32_get_local_syms (abfd, sec, &isymbuf))
|| !nds32_get_local_syms (abfd, sec, &isymbuf))
- return
FALSE
;
+ return
false
;
/* Check whether it is worth for fp-as-gp optimization,
i.e., at least 3 gp-load.
/* Check whether it is worth for fp-as-gp optimization,
i.e., at least 3 gp-load.
@@
-12844,7
+12843,7
@@
nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
begin_rel = irel;
nds32_fag_init (&fag_head);
begin_rel = irel;
nds32_fag_init (&fag_head);
- ifc_inside =
FALSE
;
+ ifc_inside =
false
;
}
else if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_END
&& (irel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG))
}
else if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_END
&& (irel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG))
@@
-12927,16
+12926,16
@@
nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
|| ELF32_R_TYPE (irel->r_info) == R_NDS32_10IFCU_PCREL_RELA)
{
/* Suppress fp as gp when encounter ifc. */
|| ELF32_R_TYPE (irel->r_info) == R_NDS32_10IFCU_PCREL_RELA)
{
/* Suppress fp as gp when encounter ifc. */
- ifc_inside =
TRUE
;
+ ifc_inside =
true
;
}
}
}
}
- return
TRUE
;
+ return
true
;
}
/* Remove unused `la $fp, _FD_BASE_' instruction. */
}
/* Remove unused `la $fp, _FD_BASE_' instruction. */
-static b
fd_boolean
+static b
ool
nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs,
Elf_Internal_Rela *irelend)
nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec,
Elf_Internal_Rela *internal_relocs,
Elf_Internal_Rela *irelend)
@@
-12945,8
+12944,8
@@
nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec,
Elf_Internal_Shdr *symtab_hdr;
bfd_byte *contents = NULL;
nds32_elf_blank_t *relax_blank_list = NULL;
Elf_Internal_Shdr *symtab_hdr;
bfd_byte *contents = NULL;
nds32_elf_blank_t *relax_blank_list = NULL;
- b
fd_boolean result = TRUE
;
- b
fd_boolean unused_region = FALSE
;
+ b
ool result = true
;
+ b
ool unused_region = false
;
/*
NOTE: Disable fp-as-gp if we encounter ifcall relocations:
/*
NOTE: Disable fp-as-gp if we encounter ifcall relocations:
@@
-12954,7
+12953,7
@@
nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec,
R_NDS32_10IFCU_PCREL_RELA. */
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
R_NDS32_10IFCU_PCREL_RELA. */
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
- nds32_get_section_contents (abfd, sec, &contents,
TRUE
);
+ nds32_get_section_contents (abfd, sec, &contents,
true
);
for (irel = internal_relocs; irel < irelend; irel++)
{
for (irel = internal_relocs; irel < irelend; irel++)
{
@@
-12968,10
+12967,10
@@
nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec,
if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_BEGIN
&& (irel->r_addend & R_NDS32_RELAX_REGION_NOT_OMIT_FP_FLAG))
if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_BEGIN
&& (irel->r_addend & R_NDS32_RELAX_REGION_NOT_OMIT_FP_FLAG))
- unused_region =
TRUE
;
+ unused_region =
true
;
else if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_END
&& (irel->r_addend & R_NDS32_RELAX_REGION_NOT_OMIT_FP_FLAG))
else if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_END
&& (irel->r_addend & R_NDS32_RELAX_REGION_NOT_OMIT_FP_FLAG))
- unused_region =
FALSE
;
+ unused_region =
false
;
/* We're not in the region. */
if (!unused_region)
/* We're not in the region. */
if (!unused_region)
@@
-13026,7
+13025,7
@@
nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec,
return result;
error_return:
return result;
error_return:
- result =
FALSE
;
+ result =
false
;
goto finish;
}
goto finish;
}
@@
-13042,7
+13041,7
@@
nds32_elf_get_relocated_section_contents (bfd *abfd,
struct bfd_link_info *link_info,
struct bfd_link_order *link_order,
bfd_byte *data,
struct bfd_link_info *link_info,
struct bfd_link_order *link_order,
bfd_byte *data,
- b
fd_boolean
relocatable,
+ b
ool
relocatable,
asymbol **symbols)
{
bfd *input_bfd = link_order->u.indirect.section->owner;
asymbol **symbols)
{
bfd *input_bfd = link_order->u.indirect.section->owner;
@@
-13056,7
+13055,7
@@
nds32_elf_get_relocated_section_contents (bfd *abfd,
return NULL;
/* Read in the section. */
return NULL;
/* Read in the section. */
- if (!nds32_get_section_contents (input_bfd, input_section, &data,
FALSE
))
+ if (!nds32_get_section_contents (input_bfd, input_section, &data,
false
))
return NULL;
if (reloc_size == 0)
return NULL;
if (reloc_size == 0)
@@
-13085,8
+13084,8
@@
nds32_elf_get_relocated_section_contents (bfd *abfd,
{
bfd_vma off;
static reloc_howto_type none_howto
{
bfd_vma off;
static reloc_howto_type none_howto
- = HOWTO (0, 0, 0, 0,
FALSE
, 0, complain_overflow_dont, NULL,
- "unused",
FALSE, 0, 0, FALSE
);
+ = HOWTO (0, 0, 0, 0,
false
, 0, complain_overflow_dont, NULL,
+ "unused",
false, 0, 0, false
);
off = (*parent)->address * OCTETS_PER_BYTE (input_bfd,
input_section);
off = (*parent)->address * OCTETS_PER_BYTE (input_bfd,
input_section);
@@
-13119,7
+13118,7
@@
nds32_elf_get_relocated_section_contents (bfd *abfd,
case bfd_reloc_undefined:
(*link_info->callbacks->undefined_symbol)
(link_info, bfd_asymbol_name (*(*parent)->sym_ptr_ptr),
case bfd_reloc_undefined:
(*link_info->callbacks->undefined_symbol)
(link_info, bfd_asymbol_name (*(*parent)->sym_ptr_ptr),
- input_bfd, input_section, (*parent)->address,
TRUE
);
+ input_bfd, input_section, (*parent)->address,
true
);
break;
case bfd_reloc_dangerous:
BFD_ASSERT (error_message != NULL);
break;
case bfd_reloc_dangerous:
BFD_ASSERT (error_message != NULL);
@@
-13163,12
+13162,12
@@
nds32_elf_get_relocated_section_contents (bfd *abfd,
/* Check target symbol. */
/* Check target symbol. */
-static b
fd_boolean
+static b
ool
nds32_elf_is_target_special_symbol (bfd *abfd ATTRIBUTE_UNUSED, asymbol *sym)
{
if (!sym || !sym->name || sym->name[0] != '$')
nds32_elf_is_target_special_symbol (bfd *abfd ATTRIBUTE_UNUSED, asymbol *sym)
{
if (!sym || !sym->name || sym->name[0] != '$')
- return
FALSE
;
- return
TRUE
;
+ return
false
;
+ return
true
;
}
/* nds32 find maybe function sym. Ignore target special symbol
}
/* nds32 find maybe function sym. Ignore target special symbol
@@
-13221,7
+13220,7
@@
list_insert (relax_group_list_t *pHead, Elf_Internal_Rela *pElem)
/* Insert node. */
relax_group_list_t *pNew = bfd_malloc (sizeof (relax_group_list_t));
if (!pNew)
/* Insert node. */
relax_group_list_t *pNew = bfd_malloc (sizeof (relax_group_list_t));
if (!pNew)
- return
FALSE
;
+ return
false
;
relax_group_list_t *tmp = pNext->next;
pNext->next = pNew;
relax_group_list_t *tmp = pNext->next;
pNext->next = pNew;
@@
-13231,7
+13230,7
@@
list_insert (relax_group_list_t *pHead, Elf_Internal_Rela *pElem)
pNew->next = tmp;
pNew->next_sibling = NULL;
pNew->next = tmp;
pNew->next_sibling = NULL;
- return
TRUE
;
+ return
true
;
}
int
}
int
@@
-13248,7
+13247,7
@@
list_insert_sibling (relax_group_list_t *pNode, Elf_Internal_Rela *pElem)
/* Insert node. */
relax_group_list_t *pNew = bfd_malloc (sizeof (relax_group_list_t));
if (!pNew)
/* Insert node. */
relax_group_list_t *pNew = bfd_malloc (sizeof (relax_group_list_t));
if (!pNew)
- return
FALSE
;
+ return
false
;
relax_group_list_t *tmp = pNext->next_sibling;
pNext->next_sibling = pNew;
relax_group_list_t *tmp = pNext->next_sibling;
pNext->next_sibling = pNew;
@@
-13258,7
+13257,7
@@
list_insert_sibling (relax_group_list_t *pNode, Elf_Internal_Rela *pElem)
pNew->next = NULL;
pNew->next_sibling = tmp;
pNew->next = NULL;
pNew->next_sibling = tmp;
- return
TRUE
;
+ return
true
;
}
void
}
void
@@
-13300,7
+13299,7
@@
elf32_nds32_check_relax_group (bfd *abfd, asection *asec)
{
/* Relocations MUST be kept in memory, because relaxation adjust them. */
relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL,
{
/* Relocations MUST be kept in memory, because relaxation adjust them. */
relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL,
-
TRUE
/* keep_memory */);
+
true
/* keep_memory */);
if (relocs == NULL)
break;
if (relocs == NULL)
break;
@@
-13320,7
+13319,7
@@
elf32_nds32_check_relax_group (bfd *abfd, asection *asec)
max_id = id;
}
}
max_id = id;
}
}
- while (
FALSE
);
+ while (
false
);
if (elf_section_data (asec)->relocs != relocs)
free (relocs);
if (elf_section_data (asec)->relocs != relocs)
free (relocs);
@@
-13410,7
+13409,7
@@
elf32_nds32_unify_relax_group (bfd *abfd, asection *asec)
elf32_nds32_relax_group_t *relax_group_ptr =
elf32_nds32_relax_group_ptr (abfd);
elf32_nds32_relax_group_t *relax_group_ptr =
elf32_nds32_relax_group_ptr (abfd);
- b
fd_boolean result = TRUE
;
+ b
ool result = true
;
Elf_Internal_Rela *rel;
Elf_Internal_Rela *relend;
Elf_Internal_Rela *relocs = NULL;
Elf_Internal_Rela *rel;
Elf_Internal_Rela *relend;
Elf_Internal_Rela *relocs = NULL;
@@
-13430,7
+13429,7
@@
elf32_nds32_unify_relax_group (bfd *abfd, asection *asec)
/* Relocations MUST be kept in memory, because relaxation adjust them. */
relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL,
/* Relocations MUST be kept in memory, because relaxation adjust them. */
relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL,
-
TRUE
/* keep_memory */);
+
true
/* keep_memory */);
if (relocs == NULL)
{
BFD_ASSERT (0); /* feed me */
if (relocs == NULL)
{
BFD_ASSERT (0); /* feed me */
@@
-13459,7
+13458,7
@@
elf32_nds32_unify_relax_group (bfd *abfd, asection *asec)
count++;
}
}
count++;
}
}
- while (
FALSE
);
+ while (
false
);
if (elf_section_data (asec)->relocs != relocs)
free (relocs);
if (elf_section_data (asec)->relocs != relocs)
free (relocs);
@@
-13471,7
+13470,7
@@
int
nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents,
struct bfd_link_info *lnkinfo)
{
nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents,
struct bfd_link_info *lnkinfo)
{
- b
fd_boolean result = TRUE
;
+ b
ool result = true
;
Elf_Internal_Rela *irel;
Elf_Internal_Rela *irelend;
Elf_Internal_Rela *internal_relocs;
Elf_Internal_Rela *irel;
Elf_Internal_Rela *irelend;
Elf_Internal_Rela *internal_relocs;
@@
-13500,7
+13499,7
@@
nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents,
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (inbfd, insec, NULL, NULL,
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (inbfd, insec, NULL, NULL,
-
TRUE
/* keep_memory */);
+
true
/* keep_memory */);
if (internal_relocs == NULL)
goto error_return;
if (internal_relocs == NULL)
goto error_return;
@@
-13572,7
+13571,7
@@
nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents,
/* Get symbol table and section content. */
if (incontents)
contents = incontents;
/* Get symbol table and section content. */
if (incontents)
contents = incontents;
- else if (!nds32_get_section_contents (inbfd, insec, &contents,
TRUE
)
+ else if (!nds32_get_section_contents (inbfd, insec, &contents,
true
)
|| !nds32_get_local_syms (inbfd, insec, &local_syms))
goto error_return;
|| !nds32_get_local_syms (inbfd, insec, &local_syms))
goto error_return;
@@
-13911,7
+13910,7
@@
nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents,
return result;
error_return:
return result;
error_return:
- result =
FALSE
;
+ result =
false
;
goto finish;
}
goto finish;
}
This page took
0.122654 seconds
and
4
git commands to generate.