<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linux-xtensa.org/index.php?action=history&amp;feed=atom&amp;title=ELF_Relocation_Notes</id>
	<title>ELF Relocation Notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linux-xtensa.org/index.php?action=history&amp;feed=atom&amp;title=ELF_Relocation_Notes"/>
	<link rel="alternate" type="text/html" href="http://wiki.linux-xtensa.org/index.php?title=ELF_Relocation_Notes&amp;action=history"/>
	<updated>2026-05-05T01:13:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://wiki.linux-xtensa.org/index.php?title=ELF_Relocation_Notes&amp;diff=699&amp;oldid=prev</id>
		<title>Baruch: Split into two sections</title>
		<link rel="alternate" type="text/html" href="http://wiki.linux-xtensa.org/index.php?title=ELF_Relocation_Notes&amp;diff=699&amp;oldid=prev"/>
		<updated>2013-08-19T04:47:00Z</updated>

		<summary type="html">&lt;p&gt;Split into two sections&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:47, 19 August 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; macros and data structures that are mentioned below refer to uClibc source code, unless otherwise stated.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; macros and data structures that are mentioned below refer to uClibc source code, unless otherwise stated.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &lt;/del&gt;Global Offset Table &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&lt;/del&gt;GOT&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;; resides in the &amp;lt;tt&amp;gt;.got&amp;lt;/tt&amp;gt; section) &lt;/del&gt;has only one pointer entry. The link editor keeps in this GOT entry a pointer to the &amp;lt;tt&amp;gt;.dynamic&amp;lt;/tt&amp;gt; section. At run-time the dynamic linker sets the same entry to point to the _dl_linux_resolve() routine. This pointer is later replicated to the beginning of each PLT chunk using the &amp;lt;tt&amp;gt;R_XTENSA_RTLD&amp;lt;/tt&amp;gt; type 1 relocation (see below).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Xtensa &lt;/ins&gt;Global Offset Table &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &lt;/ins&gt;GOT has only one pointer entry. The link editor keeps in this GOT entry a pointer to the &amp;lt;tt&amp;gt;.dynamic&amp;lt;/tt&amp;gt; section. At run-time the dynamic linker sets the same entry to point to the _dl_linux_resolve() routine. This pointer is later replicated to the beginning of each PLT chunk using the &amp;lt;tt&amp;gt;R_XTENSA_RTLD&amp;lt;/tt&amp;gt; type 1 relocation (see below).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;quot;real&amp;quot; GOT is pointed at from and array of (offset, length) pairs (&amp;lt;tt&amp;gt;xtensa_got_location&amp;lt;/tt&amp;gt; data type) at the &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section. The offset and size of this array are kept in xtensa specific &amp;lt;tt&amp;gt;.dynamic&amp;lt;/tt&amp;gt; section tags named &amp;lt;tt&amp;gt;DT_XTENSA_GOT_LOC_OFF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;DT_XTENSA_GOT_LOC_SZ&amp;lt;/tt&amp;gt;, respectively. This &amp;quot;real&amp;quot; GOT is part of &amp;lt;tt&amp;gt;.text&amp;lt;/tt&amp;gt; section, and as such is flagged for read and execute only. However, xtensa specific macros (&amp;lt;tt&amp;gt;PERFORM_BOOTSTRAP_GOT&amp;lt;/tt&amp;gt; at start-up time, &amp;lt;tt&amp;gt;INIT_GOT&amp;lt;/tt&amp;gt; at run-time load [&amp;lt;tt&amp;gt;elf_machine_runtime_setup()&amp;lt;/tt&amp;gt; in glibc]) use &amp;lt;tt&amp;gt;_dl_mprotect()&amp;lt;/tt&amp;gt; to change the protection bits on the &amp;lt;tt&amp;gt;.text&amp;lt;/tt&amp;gt; pages pointed from the &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section, and allow write access.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;quot;real&amp;quot; GOT is pointed at from and array of (offset, length) pairs (&amp;lt;tt&amp;gt;xtensa_got_location&amp;lt;/tt&amp;gt; data type) at the &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section. The offset and size of this array are kept in xtensa specific &amp;lt;tt&amp;gt;.dynamic&amp;lt;/tt&amp;gt; section tags named &amp;lt;tt&amp;gt;DT_XTENSA_GOT_LOC_OFF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;DT_XTENSA_GOT_LOC_SZ&amp;lt;/tt&amp;gt;, respectively. This &amp;quot;real&amp;quot; GOT is part of &amp;lt;tt&amp;gt;.text&amp;lt;/tt&amp;gt; section, and as such is flagged for read and execute only. However, xtensa specific macros (&amp;lt;tt&amp;gt;PERFORM_BOOTSTRAP_GOT&amp;lt;/tt&amp;gt; at start-up time, &amp;lt;tt&amp;gt;INIT_GOT&amp;lt;/tt&amp;gt; at run-time load [&amp;lt;tt&amp;gt;elf_machine_runtime_setup()&amp;lt;/tt&amp;gt; in glibc]) use &amp;lt;tt&amp;gt;_dl_mprotect()&amp;lt;/tt&amp;gt; to change the protection bits on the &amp;lt;tt&amp;gt;.text&amp;lt;/tt&amp;gt; pages pointed from the &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section, and allow write access.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# The &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section contains a short array of GOT locations at the beginning, and is mostly filled with zeros, why?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# The &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section contains a short array of GOT locations at the beginning, and is mostly filled with zeros, why?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Are &amp;lt;tt&amp;gt;.xt.lit&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.xt.prop&amp;lt;/tt&amp;gt; really needed at run-time?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Are &amp;lt;tt&amp;gt;.xt.lit&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.xt.prop&amp;lt;/tt&amp;gt; really needed at run-time?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Run-Time Relocations ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Xtensa run-time relocations as implemented in &amp;lt;tt&amp;gt;_dl_do_reloc()&amp;lt;/tt&amp;gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Xtensa run-time relocations as implemented in &amp;lt;tt&amp;gt;_dl_do_reloc()&amp;lt;/tt&amp;gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Baruch</name></author>
	</entry>
	<entry>
		<id>http://wiki.linux-xtensa.org/index.php?title=ELF_Relocation_Notes&amp;diff=698&amp;oldid=prev</id>
		<title>Baruch: New page: &#039;&#039;&#039;Note:&#039;&#039;&#039; macros and data structures that are mentioned below refer to uClibc source code, unless otherwise stated.  The Global Offset Table (GOT; resides in the &lt;tt&gt;.got&lt;/tt&gt; section) h...</title>
		<link rel="alternate" type="text/html" href="http://wiki.linux-xtensa.org/index.php?title=ELF_Relocation_Notes&amp;diff=698&amp;oldid=prev"/>
		<updated>2013-08-18T15:07:56Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; macros and data structures that are mentioned below refer to uClibc source code, unless otherwise stated.  The Global Offset Table (GOT; resides in the &amp;lt;tt&amp;gt;.got&amp;lt;/tt&amp;gt; section) h...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; macros and data structures that are mentioned below refer to uClibc source code, unless otherwise stated.&lt;br /&gt;
&lt;br /&gt;
The Global Offset Table (GOT; resides in the &amp;lt;tt&amp;gt;.got&amp;lt;/tt&amp;gt; section) has only one pointer entry. The link editor keeps in this GOT entry a pointer to the &amp;lt;tt&amp;gt;.dynamic&amp;lt;/tt&amp;gt; section. At run-time the dynamic linker sets the same entry to point to the _dl_linux_resolve() routine. This pointer is later replicated to the beginning of each PLT chunk using the &amp;lt;tt&amp;gt;R_XTENSA_RTLD&amp;lt;/tt&amp;gt; type 1 relocation (see below).&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;real&amp;quot; GOT is pointed at from and array of (offset, length) pairs (&amp;lt;tt&amp;gt;xtensa_got_location&amp;lt;/tt&amp;gt; data type) at the &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section. The offset and size of this array are kept in xtensa specific &amp;lt;tt&amp;gt;.dynamic&amp;lt;/tt&amp;gt; section tags named &amp;lt;tt&amp;gt;DT_XTENSA_GOT_LOC_OFF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;DT_XTENSA_GOT_LOC_SZ&amp;lt;/tt&amp;gt;, respectively. This &amp;quot;real&amp;quot; GOT is part of &amp;lt;tt&amp;gt;.text&amp;lt;/tt&amp;gt; section, and as such is flagged for read and execute only. However, xtensa specific macros (&amp;lt;tt&amp;gt;PERFORM_BOOTSTRAP_GOT&amp;lt;/tt&amp;gt; at start-up time, &amp;lt;tt&amp;gt;INIT_GOT&amp;lt;/tt&amp;gt; at run-time load [&amp;lt;tt&amp;gt;elf_machine_runtime_setup()&amp;lt;/tt&amp;gt; in glibc]) use &amp;lt;tt&amp;gt;_dl_mprotect()&amp;lt;/tt&amp;gt; to change the protection bits on the &amp;lt;tt&amp;gt;.text&amp;lt;/tt&amp;gt; pages pointed from the &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section, and allow write access.&lt;br /&gt;
&lt;br /&gt;
Open questions:&lt;br /&gt;
&lt;br /&gt;
# The sections &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.xt.lit&amp;lt;/tt&amp;gt; look identical, why are both needed?&lt;br /&gt;
# The &amp;lt;tt&amp;gt;.got.loc&amp;lt;/tt&amp;gt; section contains a short array of GOT locations at the beginning, and is mostly filled with zeros, why?&lt;br /&gt;
# Are &amp;lt;tt&amp;gt;.xt.lit&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.xt.prop&amp;lt;/tt&amp;gt; really needed at run-time?&lt;br /&gt;
&lt;br /&gt;
Xtensa run-time relocations as implemented in &amp;lt;tt&amp;gt;_dl_do_reloc()&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;tt&amp;gt;R_XTENSA_GLOB_DAT, R_XTENSA_JMP_SLOT&amp;lt;/tt&amp;gt; : Relocate to symbol address + addend. In terms of the Intel psABI the calculation is &amp;#039;S + A&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;tt&amp;gt;R_XTENSA_RTLD&amp;lt;/tt&amp;gt; : This includes two relocation types selected by the addend field. Type 1 inserts a pointer to the &amp;lt;tt&amp;gt;_dl_linux_resolve()&amp;lt;/tt&amp;gt; routine (taken by the dynamic linker from the first (and only) entry of the &amp;lt;tt&amp;gt;.got&amp;lt;/tt&amp;gt; section). Type 2 inserts a pointer to the per-module &amp;#039;&amp;lt;tt&amp;gt;struct elf_resolve&amp;lt;/tt&amp;gt;&amp;#039; data structure. According to the binutils &amp;lt;tt&amp;gt;elf_xtensa_finish_dynamic_sections()&amp;lt;/tt&amp;gt; routine, this relocation is emitted at the beginning of each PLT &amp;quot;chunk&amp;quot;. Each Chunk holds up to 254 PLT entries. The &amp;lt;tt&amp;gt;_dl_linux_resolve()&amp;lt;/tt&amp;gt; pointer, and the link map pointer (struct elf_resolve) are the first two parameters of the initial PLT routine (&amp;lt;tt&amp;gt;elf_xtensa_le_plt_entry[]&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;tt&amp;gt;R_XTENSA_RELATIVE&amp;lt;/tt&amp;gt; : Used to adjust internal pointers in the &amp;quot;real&amp;quot; GOT according to the current load address, mainly in shared libraries.&lt;/div&gt;</summary>
		<author><name>Baruch</name></author>
	</entry>
</feed>