Home | History | Annotate | Download | only in bfd

Lines Matching defs:reloc

260   /* The input section of the reloc.  */
321 /* This reloc does nothing. */
382 This reloc is complicated because relocations are relative to pc & -4.
2364 /* Handle the R_NDS32_9_PCREL & R_NDS32_9_PCREL_RELA reloc. */
2396 /* Utility to actually perform an R_NDS32_9_PCREL reloc. */
2446 These relocs have to be done in combination with an R_NDS32_LO12 reloc
2450 number of HI20 relocs to be associated with a single LO12 reloc. The
2516 /* Handle an NDS32 ELF HI20 reloc. */
2608 /* Now do the LO12 reloc in the usual way.
2639 /* Now do the reloc in the usual way.
2721 /* Handle the R_NDS32_SDA15 reloc.
2722 This reloc is used to compute the address of objects in the small data area
2776 /* Map BFD reloc types to NDS32 ELF reloc types. */
2961 /* Set the howto pointer for an NDS32 ELF reloc. */
3519 image and use a R_*_COPY reloc to tell the dynamic linker to
3574 /* Add reloc counts against the weak sym to the strong sym
3640 /* This case can occur if we saw a PLT reloc in an input
3644 reloc instead. */
3677 GOT, we don't need to generate a copy reloc. */
3697 copy reloc, then we'll be keeping the dynamic relocs and avoiding
3698 the copy reloc. */
3719 /* We must generate a R_NDS32_COPY reloc to tell the dynamic linker
3757 /* Allocate space in .plt, .got and associated reloc sections for
4111 but this way if it does, we get a R_NDS32_NONE reloc instead
4235 field. Note that when bfd_vma is 32 bits, a 32-bit reloc
4347 ADDEND, any addend associated with the reloc. */
4434 relocatable output file) adjusting the reloc addend as
4437 This function does not have to worry about setting the reloc
4438 address or the reloc symbol index.
4639 anything, unless the reloc is against a section symbol,
4682 /* The native assembler will generate a 25_PLTREL reloc
4727 /* The native assembler will generate a 25_PLTREL reloc
4849 /* We need to generate a R_NDS32_RELATIVE reloc
4981 /* If this reloc is against an external symbol, we do
4984 an addend for the dynamic reloc. */
5011 LO12 reloc. This permits gcc to emit the HI and LO relocs
5102 /* We need to generate a R_NDS32_RELATIVE reloc
5596 locally, we just want to emit a RELATIVE reloc. Likewise if
5629 /* This symbols needs a copy reloc. Set it up. */
6535 /* If we are creating a shared library, and this is a reloc against
6536 a global symbol, or a non PC relative reloc against a local
6537 symbol, then we need to copy the reloc into the shared library.
6539 copy a reloc against a global symbol which is defined in an
6575 relocs into the output file. We create a reloc
6576 section in dynobj and make room for the reloc. */
6708 /* Get the value of the symbol referred to by the reloc. */
6742 regular reloc processing. */
6820 * regular reloc processing. */
7532 Elf_Internal_Rela *reloc)
7536 if ((reloc->r_addend & R_NDS32_INSN16_FP7U2_FLAG) == 0
7537 || (ELF32_R_TYPE (reloc->r_info) != R_NDS32_INSN16))
8006 /* Get the value of the symbol referred to by the reloc. */
8042 regular reloc processing. */
8072 /* Get the value of the symbol referred to by the reloc. */
8124 Elf_Internal_Rela *reloc,
8142 if (reloc->r_offset + 4 > sec->size)
8145 offset = reloc->r_offset;
8153 else if (special_convert_32_to_16 (insn, insn16, reloc))
8164 pc_rel = reloc;
8202 && (reloc->r_addend & R_NDS32_INSN16_FP7U2_FLAG)
8236 Elf_Internal_Rela *reloc,
8244 offset = reloc->r_offset;
8248 pc_rel = reloc;
8278 of the same r_offset with reloc.
8282 we find the relocation from `reloc' backward untill relocs,
8283 or find it from `reloc' forward untill irelend. */
8286 find_relocs_at_address (Elf_Internal_Rela *reloc,
8294 for (rel_t = reloc;
8295 rel_t >= relocs && rel_t->r_offset == reloc->r_offset;
8301 for (rel_t = reloc;
8302 rel_t < irelend && rel_t->r_offset == reloc->r_offset;
8311 `reloc' is just a refence point to find a relocation at specified offset.
8315 we find the relocation from `reloc' backward untill relocs,
8316 or find it from `reloc' forward untill irelend. */
8319 find_relocs_at_address_addr (Elf_Internal_Rela *reloc,
8330 if (reloc->r_offset > offset_p)
8333 for (rel_t = reloc;
8337 else if (reloc->r_offset < offset_p)
8340 for (rel_t = reloc;
8345 rel_t = reloc;
8355 nds32_elf_check_dup_relocs (Elf_Internal_Rela *reloc,
8362 for (rel_t = reloc;
8363 rel_t >= internal_relocs && rel_t->r_offset == reloc->r_offset;
8367 if (ELF32_R_SYM (rel_t->r_info) == ELF32_R_SYM (reloc->r_info)
8368 && rel_t->r_addend == reloc->r_addend)
8373 for (rel_t = reloc; rel_t < irelend && rel_t->r_offset == reloc->r_offset;
8377 if (ELF32_R_SYM (rel_t->r_info) == ELF32_R_SYM (reloc->r_info)
8378 && rel_t->r_addend == reloc->r_addend)
8625 /* The deletion must stop at the next ALIGN reloc for an alignment
8772 /* Mark reloc in deleted portion as NONE.
9050 /* Get the reloc for the address from which the register is
9051 being loaded. This reloc will tell us which function is
9077 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9081 /* Get the value of the symbol referred to by the reloc. */
9139 /* Get the reloc for the address from which the register is
9140 being loaded. This reloc will tell us which function is
9159 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9165 /* Get the value of the symbol referred to by the reloc. */
9238 /* Get the reloc for the address from which the register is
9239 being loaded. This reloc will tell us which function is
9266 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9270 /* Get the value of the symbol referred to by the reloc. */
9371 /* Get the reloc for the address from which the register is
9372 being loaded. This reloc will tell us which function is
9383 unsigned long reloc;
9401 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9405 /* Get the value of the symbol referred to by the reloc. */
9418 reloc = R_NDS32_9_PCREL_RELA;
9428 reloc = R_NDS32_25_PCREL_RELA;
9438 ELF32_R_INFO (ELF32_R_SYM (hi_irelfn->r_info), reloc);
9567 /* Get the reloc for the address from which the register is
9568 being loaded. This reloc will tell us which function is
9579 unsigned long reloc, cond_reloc;
9608 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9612 /* Get the value of the symbol referred to by the reloc. */
9638 ``label reloc; INSN16''. */
9643 reloc = (N32_OP6 (re_insn) == N32_OP6_BR1) ?
9651 reloc = R_NDS32_9_PCREL_RELA;
9662 reloc = R_NDS32_15_PCREL_RELA;
9672 reloc = R_NDS32_17_PCREL_RELA;
9679 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info), reloc);
9750 /* Get the reloc for the address from which the register is
9751 being loaded. This reloc will tell us which function is
9765 unsigned long reloc, cond_reloc;
9801 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9805 /* Get the value of the symbol referred to by the reloc. */
9839 for ``label reloc; INSN1a''6. */
9843 reloc = (N32_OP6 (re_insn) == N32_OP6_BR1) ?
9853 reloc = R_NDS32_9_PCREL_RELA;
9865 reloc = R_NDS32_15_PCREL_RELA;
9876 reloc = R_NDS32_17_PCREL_RELA;
9907 reloc = R_NDS32_LONGJUMP2;
9916 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (hi_irelfn->r_info), reloc);
9927 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), reloc);
9972 /* Get the reloc for the address from which the register is
9973 being loaded. This reloc will tell us which function is
9982 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
9986 /* Get the value of the symbol referred to by the reloc. */
10013 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10075 /* Get the reloc for the address from which the register is
10076 being loaded. This reloc will tell us which function is
10085 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10089 /* Get the value of the symbol referred to by the reloc. */
10154 /* Get the reloc for the address from which the register is
10155 being loaded. This reloc will tell us which function is
10164 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10168 /* Get the value of the symbol referred to by the reloc. */
10203 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10253 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10293 /* Get the reloc for the address from which the register is
10294 being loaded. This reloc will tell us which function is
10304 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10308 /* Get the value of the symbol referred to by the reloc. */
10327 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10382 unsigned long reloc;
10391 /* Get the reloc for the address from which the register is
10392 being loaded. This reloc will tell us which function is
10402 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10406 /* Get the value of the symbol referred to by the reloc. */
10431 reloc = R_NDS32_15_PCREL_RELA;
10438 reloc = R_NDS32_17_PCREL_RELA;
10445 reloc = R_NDS32_WORD_9_PCREL_RELA;
10451 cond_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), reloc);
10517 unsigned long reloc;
10522 /* Get the reloc for the address from which the register is
10523 being loaded. This reloc will tell us which function is
10532 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10536 /* Get the value of the symbol referred to by the reloc. */
10568 reloc = R_NDS32_15_PCREL_RELA;
10576 reloc = R_NDS32_17_PCREL_RELA;
10596 reloc = R_NDS32_25_PCREL_RELA;
10603 em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info), reloc);
10692 /* Get the reloc for the address from which the register is
10693 being loaded. This reloc will tell us which function is
10703 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10707 /* Get the value of the symbol referred to by the reloc. */
10808 "reloc at 0x%lx.", abfd, (long) irel->r_offset);
10946 unsigned long reloc;
10975 reloc = R_NDS32_20_RELA;
10976 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), reloc);
10992 reloc = R_NDS32_SDA19S0_RELA;
10995 reloc = R_NDS32_SDA18S1_RELA;
10998 reloc = R_NDS32_SDA17S2_RELA;
11003 reloc = R_NDS32_SDA12S2_DP_RELA;
11008 reloc = R_NDS32_SDA12S2_SP_RELA;
11021 /* Maybe we should add R_NDS32_INSN16 reloc type here
11030 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), reloc);
11036 if (irelfn != irelend && reloc != R_NDS32_SDA17S2_RELA)
11056 unsigned long reloc;
11070 reloc = R_NDS32_GOT20;
11076 reloc = R_NDS32_PLT_GOTREL_LO20;
11082 reloc = R_NDS32_GOTOFF;
11088 reloc = R_NDS32_GOTPC20;
11096 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), reloc);
11113 unsigned long reloc;
11125 reloc = R_NDS32_TLS_LE_20;
11126 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), reloc);
11279 ("%B: warning: R_NDS32_PTR points to unrecognized reloc at 0x%lx.",
11356 /* Get the value of the symbol referred to by the reloc. */
11376 /* Get the value of the symbol referred to by the reloc. */
11592 /* Find the first reloc has the same offset with label_rel. */
11606 /* Swap the two reloc if the R_NDS32_INSN16 is
11662 all reloc entries has been sorted by r_offset. */
11678 /* Previous INSN16 reloc exists, reduce its
11712 needless, just reset this reloc. */
11763 /* Previous reloc exists, reduce its size to 16-bit. */
11782 /* INSN16 reloc is used. */
11948 * no reloc entry. */