<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/riscv/kernel/module.c, branch linux-4.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-08-24T11:06:59Z</updated>
<entry>
<title>RISC-V: fix R_RISCV_ADD32/R_RISCV_SUB32 relocations</title>
<updated>2018-08-24T11:06:59Z</updated>
<author>
<name>Andreas Schwab</name>
</author>
<published>2018-06-12T17:26:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c488c3eabe9d6f9b2b705f8a68ba395b0eaea132'/>
<id>urn:sha1:c488c3eabe9d6f9b2b705f8a68ba395b0eaea132</id>
<content type='text'>
[ Upstream commit 781c8fe2da3d2c7c95cd7ffddbab63b80a79da4d ]

The R_RISCV_ADD32/R_RISCV_SUB32 relocations should add/subtract the
address of the symbol (without overflow check), not its contents.

Signed-off-by: Andreas Schwab &lt;schwab@suse.de&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support SUB32 relocation type in kernel module</title>
<updated>2018-04-03T03:00:55Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4aad074c9c1d1302c504e1a26fe434878fe08cd5'/>
<id>urn:sha1:4aad074c9c1d1302c504e1a26fe434878fe08cd5</id>
<content type='text'>
Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support ADD32 relocation type in kernel module</title>
<updated>2018-04-03T03:00:55Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e691b16769d233f8a8b668dc7fad783459e4573'/>
<id>urn:sha1:8e691b16769d233f8a8b668dc7fad783459e4573</id>
<content type='text'>
Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support ALIGN relocation type in kernel module</title>
<updated>2018-04-03T03:00:55Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29e405cd88c373ddcb3399687311aa869a7c8ee7'/>
<id>urn:sha1:29e405cd88c373ddcb3399687311aa869a7c8ee7</id>
<content type='text'>
Just fail on align type. Kernel modules loader didn't do relax
like linker, it is difficult to remove or migrate the code,
but the remnant nop instructions harm the performaace of module.
We expect the building module with the no-relax option.

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support RVC_BRANCH/JUMP relocation type in kernel modulewq</title>
<updated>2018-04-03T03:00:55Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=56ea45ae239206d79d776a43bf32cbd8fa4e069d'/>
<id>urn:sha1:56ea45ae239206d79d776a43bf32cbd8fa4e069d</id>
<content type='text'>
Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support HI20/LO12_I/LO12_S relocation type in kernel module</title>
<updated>2018-04-03T03:00:55Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7456e696bff09ef2345081bf21e5ce741e2a3ce'/>
<id>urn:sha1:e7456e696bff09ef2345081bf21e5ce741e2a3ce</id>
<content type='text'>
HI20 and LO12_I/LO12_S relocate the absolute address, the range of
offset must in 32-bit.

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support CALL relocation type in kernel module</title>
<updated>2018-04-03T03:00:54Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1910c72bdc405b5028510ccc3ed42f0ed25cc6c'/>
<id>urn:sha1:e1910c72bdc405b5028510ccc3ed42f0ed25cc6c</id>
<content type='text'>
Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: Support GOT_HI20/CALL_PLT relocation type in kernel module</title>
<updated>2018-04-03T03:00:54Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-03-15T08:50:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=da975dd4818cf42a181910789c096eb6997ed663'/>
<id>urn:sha1:da975dd4818cf42a181910789c096eb6997ed663</id>
<content type='text'>
For CALL_PLT, emit the plt entry only when offset is more than 32-bit.

For PCREL_LO12, it uses the location of corresponding HI20 to
get the address of external symbol. It should check the HI20 type
is the PCREL_HI20 or GOT_HI20, because sometime the location will
have two or more relocation types.
For example:
0:   00000797                auipc   a5,0x0
                     0: R_RISCV_ALIGN        *ABS*
                     0: R_RISCV_GOT_HI20     SYMBOL
4:   0007b783                ld      a5,0(a5) # 0 &lt;SYMBOL&gt;
                     4: R_RISCV_PCREL_LO12_I .L0
                     4: R_RISCV_RELAX        *ABS*

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmer@sifive.com&gt;
</content>
</entry>
<entry>
<title>RISC-V: User-facing API</title>
<updated>2017-09-26T22:26:48Z</updated>
<author>
<name>Palmer Dabbelt</name>
</author>
<published>2017-07-11T01:07:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2c0cdfba7f69925afc92b20cd9835d81e11a4f1'/>
<id>urn:sha1:e2c0cdfba7f69925afc92b20cd9835d81e11a4f1</id>
<content type='text'>
This patch contains code that is in some way visible to the user:
including via system calls, the VDSO, module loading and signal
handling.  It also contains some generic code that is ABI visible.

Signed-off-by: Palmer Dabbelt &lt;palmer@dabbelt.com&gt;
</content>
</entry>
</feed>
