<div dir="ltr"><div>This series will probably conflict with the new linker, which will also handle relocations and more:</div><div><a href="https://patchwork.freedesktop.org/series/60255/">https://patchwork.freedesktop.org/series/60255/</a></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 10:39 PM Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu">jan.vesely@rutgers.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Cc: <a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank">mesa-stable@lists.freedesktop.org</a><br>
Signed-off-by: Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu" target="_blank">jan.vesely@rutgers.edu</a>><br>
---<br>
src/amd/common/ac_binary.c | 2 ++<br>
src/amd/common/ac_binary.h | 2 ++<br>
2 files changed, 4 insertions(+)<br>
<br>
diff --git a/src/amd/common/ac_binary.c b/src/amd/common/ac_binary.c<br>
index 8f4755ebe16..18dc72c61f0 100644<br>
--- a/src/amd/common/ac_binary.c<br>
+++ b/src/amd/common/ac_binary.c<br>
@@ -102,6 +102,8 @@ static void parse_relocs(Elf *elf, Elf_Data *relocs, Elf_Data *symbols,<br>
reloc->offset = rel.r_offset;<br>
strncpy(reloc->name, symbol_name, sizeof(reloc->name)-1);<br>
reloc->name[sizeof(reloc->name)-1] = 0;<br>
+ reloc->type = GELF_R_TYPE(rel.r_info);<br>
+ reloc->target_type = GELF_ST_TYPE(symbol.st_info);<br>
}<br>
}<br>
<br>
diff --git a/src/amd/common/ac_binary.h b/src/amd/common/ac_binary.h<br>
index 735e3932055..7541f19fb8e 100644<br>
--- a/src/amd/common/ac_binary.h<br>
+++ b/src/amd/common/ac_binary.h<br>
@@ -34,6 +34,8 @@ extern "C" {<br>
struct ac_shader_reloc {<br>
char name[32];<br>
uint64_t offset;<br>
+ int type;<br>
+ int target_type;<br>
};<br>
<br>
struct ac_shader_binary {<br>
-- <br>
2.21.0<br>
<br>
_______________________________________________<br>
mesa-stable mailing list<br>
<a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank">mesa-stable@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-stable" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-stable</a></blockquote></div>