Home
last modified time | relevance | path

Searched full:relocation (Results 1 – 25 of 926) sorted by relevance

12345678910>>...38

/OK3568_Linux_fs/kernel/Documentation/livepatch/
H A Dmodule-elf-format.rst12 3. Livepatch relocation sections
13 3.1 Livepatch relocation section format
27 loader to perform the all the arch-specific relocation work. Specifically,
36 table, symbol table, and relocation section indices, Elf information is
38 relocation sections and symbols, which are described in this document. The
39 Elf constants used to mark livepatch symbols and relocation sections were
57 relocation sections in place of dynrela sections, and the symbols that the
59 arch-specific livepatch relocation code is replaced by a call to
86 3. Livepatch relocation sections
89 A livepatch module manages its own Elf relocation sections to apply
[all …]
/OK3568_Linux_fs/kernel/arch/sh/kernel/
H A Dmodule.c33 Elf32_Addr relocation; in apply_relocate_add() local
47 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add()
54 value += relocation; in apply_relocate_add()
58 relocation = (relocation - (Elf32_Addr) location); in apply_relocate_add()
60 value += relocation; in apply_relocate_add()
65 ((relocation & 0xffff) << 10); in apply_relocate_add()
69 (((relocation >> 16) & 0xffff) << 10); in apply_relocate_add()
72 relocation -= (Elf32_Addr) location; in apply_relocate_add()
74 ((relocation & 0xffff) << 10); in apply_relocate_add()
77 relocation -= (Elf32_Addr) location; in apply_relocate_add()
[all …]
/OK3568_Linux_fs/u-boot/arch/mips/lib/
H A Dreloc.c2 * MIPS Relocation
8 * Relocation data, found in the .rel section, is generated by the mips-relocs
10 * be fixed up during relocation.
19 * Each pair of two integers represents a relocation that must be applied. The
20 * first integer represents the type of relocation as a standard ELF relocation
22 * apply the relocation, relative to the previous relocation or for the first
23 * relocation the start of the relocated .text section.
25 * The end of the relocation data is indicated when type R_MIPS_NONE (0) is
38 * Read one whole unsigned integer from the relocation data pointed to by @buf,
59 * apply_reloc() - Apply a single relocation
[all …]
/OK3568_Linux_fs/kernel/arch/mips/include/asm/
H A Dmodule.h20 Elf64_Addr r_offset; /* Address of relocation. */
23 Elf64_Byte r_type3; /* Third relocation. */
24 Elf64_Byte r_type2; /* Second relocation. */
25 Elf64_Byte r_type; /* First relocation. */
29 Elf64_Addr r_offset; /* Address of relocation. */
32 Elf64_Byte r_type3; /* Third relocation. */
33 Elf64_Byte r_type2; /* Second relocation. */
34 Elf64_Byte r_type; /* First relocation. */
/OK3568_Linux_fs/kernel/arch/arc/kernel/
H A Dmodule.c23 * This gets called before relocation loop in generic loader
54 Elf32_Addr relocation, location, tgt_addr; in apply_relocate_add() local
72 /* Loop thru entries in relocation section */ in apply_relocate_add()
83 relocation = sym_entry->st_value + rel_entry[i].r_addend; in apply_relocate_add()
93 sym_entry->st_value, location, relocation, s); in apply_relocate_add()
98 * Both of these are handled by same relocation type in apply_relocate_add()
103 arc_write_me((unsigned short *)location, relocation); in apply_relocate_add()
105 *((Elf32_Addr *) location) = relocation; in apply_relocate_add()
107 *((Elf32_Addr *) location) = relocation - location; in apply_relocate_add()
121 pr_err("%s: unknown relocation: %u\n", in apply_relocate_add()
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Drelocate.c6 * Support for Kernel relocation at boot time
28 extern u32 _relocation_start[]; /* End kernel image / start relocation table */
29 extern u32 _relocation_end[]; /* End relocation table */
37 * This function may be defined for a platform to perform any post-relocation
39 * Return non-zero to abort relocation
92 pr_err("Dangerous R_MIPS_26 REL relocation\n"); in apply_r_mips_26_rel()
104 pr_err("R_MIPS_26 REL relocation overflow\n"); in apply_r_mips_26_rel()
144 /* Sentinel for last relocation */ in do_relocations()
153 /* Unsupported relocation */ in do_relocations()
154 pr_err("Unhandled relocation type %d at 0x%pK\n", in do_relocations()
[all …]
H A Dmodule.c61 pr_err("module %s: dangerous R_MIPS_26 relocation\n", in apply_r_mips_26()
67 pr_err("module %s: relocation overflow\n", in apply_r_mips_26()
92 * actual relocation. in apply_r_mips_hi16()
145 * Do the HI16 relocation. Note that we actually don't in apply_r_mips_lo16()
184 pr_err("module %s: dangerous R_MIPS_LO16 relocation\n", me->name); in apply_r_mips_lo16()
197 pr_err("module %s: dangerous R_MIPS_PC%u relocation\n", in apply_r_mips_pc()
211 pr_err("module %s: relocation overflow\n", me->name); in apply_r_mips_pc()
274 * reloc_handler() - Apply a particular relocation to a module
281 * relocation to the module @me. Relocs that may be found in either REL or RELA
352 pr_err("%s: Unknown relocation type %u\n", in __apply_relocate()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-hisi/
H A Dplatmcpm.c66 * [2]: relocation address
67 * [3]: relocation size
269 void __iomem *relocation; in hip04_smp_init() local
292 relocation = ioremap(hip04_boot_method[2], hip04_boot_method[3]); in hip04_smp_init()
293 if (!relocation) { in hip04_smp_init()
294 pr_err("failed to map relocation space\n"); in hip04_smp_init()
327 writel_relaxed(hip04_boot_method[0], relocation); in hip04_smp_init()
328 writel_relaxed(0xa5a5a5a5, relocation + 4); /* magic number */ in hip04_smp_init()
329 writel_relaxed(__pa_symbol(secondary_startup), relocation + 8); in hip04_smp_init()
330 writel_relaxed(0, relocation + 12); in hip04_smp_init()
[all …]
/OK3568_Linux_fs/kernel/scripts/
H A Dcheck_extable.sh26 # __ex_table relocation to your new section is expected), simply add your
44 # When the relocation points to the begining of a symbol or section, it
53 # The target of the .altinstr_replacement is the relocation just before
79 # We've got a relocation to a non white listed _executable_
82 # and line number where that relocation was added.
86 # Something is definitively wrong here since we've got a relocation
110 # Let's find out where the target of the relocation in __ex_table
114 # When there's a global symbol at the place of the relocation,
127 # Will either print a warning if the relocation happens to be in a
/OK3568_Linux_fs/u-boot/doc/
H A DREADME.arm-relocation1 To make relocation on arm working, the following changes are done:
12 At cpu level: modify linker file and add a relocation and fixup loop
15 tables in the binary image, and to provide symbols for the relocation
18 The relocation and fixup loop must be executed after executing
39 Boards which are not fixed to support relocation will be REMOVED!
44 if CONFIG_SYS_TEXT_BASE == relocation address! This prevents that uboot code
59 the relocation address and copy itself to it
61 If CONFIG_SYS_TEXT_BASE == relocation address, the copying of u-boot
74 on other boards if CONFIG_SYS_TEXT_BASE = relocation baseaddr, this saves
82 Relocation with SPL (example for the tx25 booting from NAND Flash):
H A DREADME.generic-board24 favour of common/board_f.c (for pre-relocation init) and common/board_r.c
25 (for post-relocation init).
72 This series removes the dependency on generic relocation. So relocation
74 relocation series for a proposed solution to this for ARM:
110 to pre-relocation init functions. I think this makes sense, but it can
114 cleanup series and the generic relocation series) the goal is the
/OK3568_Linux_fs/buildroot/package/binutils/2.37/
H A D0004-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch4 Subject: [PATCH] or1k: fix pc-relative relocation against dynamic on PC
5 relative 26 bit relocation
10 pc-relative relocation against dynamic symbol alSourcePausev
12 pc-relative relocation against dynamic symbol alSourceStopv
14 pc-relative relocation against dynamic symbol alSourceRewindv
16 pc-relative relocation against dynamic symbol alSourcePlayv
47 + (_("%pB: pc-relative relocation against dynamic symbol %s"),
H A D0005-or1k-Avoid-R_OR1K_GOT16-signed-overflow-by-using-spe.patch8 relocation value in order to avoid overflow complaints when acceptable.
9 It turns out this does not work when the relocation value ends up being
22 mask out relocation bits.
63 relocation we assume the code is doing the right thing to avoid
64 - overflows. Here we mask the lower 16-bit of the relocation to
68 - relocation &= 0xffff;
/OK3568_Linux_fs/u-boot/common/
H A DKconfig329 bool "Allow flags to take effect on relocation"
332 In some cases the environment is not available until relocation
334 environment variable take effect at relocation.
362 option only the post-relocation output will be displayed.
371 be in available memory and is accessed before relocation and
414 start-up (after relocation). This causes the environment to be
421 and stderr on boot when the post-relocation console is set up.
566 bool "Call arch-specific init soon after relocation"
569 relocation. Driver model is running by this point, and the cache
574 bool "Call arch-specific init after relocation, when console is ready"
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/doc/ld.html/
H A DCanonical-format.html127 <dt><em>relocation level</em></dt>
128 <dd><p>Each canonical BFD relocation record contains a pointer to the symbol to
130 is in, and a pointer to a relocation type descriptor. Relocation is
131 performed by passing messages through the relocation type
133 on output data using a relocation method that is only available in one of the
134 input formats. For instance, Oasys provides a byte relocation format.
135 A relocation record requesting this relocation type would point
136 indirectly to a routine to perform this, so the relocation may be
138 has no such relocation type.
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/doc/ld.html/
H A DCanonical-format.html127 <dt><em>relocation level</em></dt>
128 <dd><p>Each canonical BFD relocation record contains a pointer to the symbol to
130 is in, and a pointer to a relocation type descriptor. Relocation is
131 performed by passing messages through the relocation type
133 on output data using a relocation method that is only available in one of the
134 input formats. For instance, Oasys provides a byte relocation format.
135 A relocation record requesting this relocation type would point
136 indirectly to a routine to perform this, so the relocation may be
138 has no such relocation type.
/OK3568_Linux_fs/u-boot/include/
H A Delf.h251 #define SHT_RELA 4 /* relocation section with addends*/
292 #define ELF_REL_DATA ".rel.data" /* relocation data */
293 #define ELF_REL_FINI ".rel.fini" /* relocation termination code */
294 #define ELF_REL_INIT ".rel.init" /* relocation initialization code */
296 #define ELF_REL_RODATA ".rel.rodata" /* relocation read-only data */
297 #define ELF_REL_TEXT ".rel.text" /* relocation code */
378 /* Relocation entry with implicit addend */
381 Elf32_Addr r_offset; /* offset of relocation */
385 /* Relocation entry with explicit addend */
388 Elf32_Addr r_offset; /* offset of relocation */
[all …]
/OK3568_Linux_fs/buildroot/package/binutils/2.38/
H A D0004-or1k-Avoid-R_OR1K_GOT16-signed-overflow-by-using-spe.patch8 relocation value in order to avoid overflow complaints when acceptable.
9 It turns out this does not work when the relocation value ends up being
22 mask out relocation bits.
63 relocation we assume the code is doing the right thing to avoid
64 - overflows. Here we mask the lower 16-bit of the relocation to
68 - relocation &= 0xffff;
/OK3568_Linux_fs/kernel/arch/x86/boot/compressed/
H A Dmisc.c6 * which includes KASLR relocation, decompression, ELF parsing, and
7 * relocation processing. Additionally included are the screen and serial
25 * run time, but no relocation processing is performed. This means that
191 * The kernel contains a table of relocation addresses. Those in handle_relocations()
208 debug_putstr("No relocation needed... "); in handle_relocations()
216 * before compression. Each relocation table entry is the kernel in handle_relocations()
224 * 64 bit relocation repeated in handle_relocations()
226 * 32 bit inverse relocation repeated in handle_relocations()
228 * 32 bit relocation repeated in handle_relocations()
238 error("32-bit relocation outside of kernel!\n"); in handle_relocations()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c6 * Generates relocation information used by the kernel to convert
47 * AArch64 relocation type constants.
311 * Print ASM statements to create a hyp relocation entry for a given
312 * R_AARCH64_ABS64 relocation.
316 * also generate a dynamic relocation entry so that the kernel can shift
323 * relocation referencing a symbol that the hyp linker script put at
335 * Create a PREL32 relocation which instructs the linker of `vmlinux` in emit_rela_abs64()
355 * hyp relocation data for all absolute addresses in hyp code/data.
358 * Failure is reported for unexpected relocation types.
381 * Emit a hyp relocation. in emit_rela_section()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/doc/stabs/
H A DStab-Section-Basics.html27 <link href="ELF-Linker-Relocation.html#ELF-Linker-Relocation" rel="next" title="ELF Linker Relocati…
65 Next: <a href="ELF-Linker-Relocation.html#ELF-Linker-Relocation" accesskey="n" rel="next">ELF Linke…
150 Next: <a href="ELF-Linker-Relocation.html#ELF-Linker-Relocation" accesskey="n" rel="next">ELF Linke…
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/doc/stabs/
H A DStab-Section-Basics.html27 <link href="ELF-Linker-Relocation.html#ELF-Linker-Relocation" rel="next" title="ELF Linker Relocati…
65 Next: <a href="ELF-Linker-Relocation.html#ELF-Linker-Relocation" accesskey="n" rel="next">ELF Linke…
150 Next: <a href="ELF-Linker-Relocation.html#ELF-Linker-Relocation" accesskey="n" rel="next">ELF Linke…
/OK3568_Linux_fs/u-boot/arch/x86/lib/
H A Drelocate.c58 /* Get the location from the relocation entry */ in do_elf_reloc_fixups64()
61 /* Check that the location of the relocation is in .text */ in do_elf_reloc_fixups64()
97 /* Get the location from the relocation entry */ in do_elf_reloc_fixups32()
100 /* Check that the location of the relocation is in .text */ in do_elf_reloc_fixups32()
132 * 62f7970a x86: Add error checking to x86 relocation code
146 panic("No relocation data"); in do_elf_reloc_fixups()
/OK3568_Linux_fs/kernel/arch/x86/tools/
H A Drelocs.c624 * relocation is harmless. in print_absolute_relocs()
708 * need further relocation (since the value is an offset relative
808 die("Invalid R_X86_64_PC64 relocation against per-CPU symbol %s\n", in do_reloc64()
814 die("Non-whitelisted %s relocation: %s\n", in do_reloc64()
830 * relocation. in do_reloc64()
835 die("Invalid absolute %s relocation: %s\n", in do_reloc64()
841 * Relocation offsets for 64 bit kernels are output in do_reloc64()
847 die("Relocation offset doesn't fit in 32 bits\n"); in do_reloc64()
856 die("Unsupported relocation type: %s (%d)\n", in do_reloc64()
889 * relocation. in do_reloc32()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/lib/
H A Dcrt0_64.S38 * data include the relocation destination, the future stack, and
46 * relocates U-Boot from its current location into the relocation
50 * code relocation in SPL.
58 * TODO: For SPL, implement stack relocation on AArch64.
111 /* Add in link-vs-relocation offset */
113 add lr, lr, x9 /* new return address after relocation */

12345678910>>...38