Re: [PATCH v5 05/10] objtool/LoongArch: Add support for switch table

From: Tiezhu Yang
Date: Tue Dec 10 2024 - 22:18:22 EST


On 12/10/2024 04:39 AM, Josh Poimboeuf wrote:
On Sat, Dec 07, 2024 at 09:59:10AM +0800, Tiezhu Yang wrote:
struct reloc *arch_find_switch_table(struct objtool_file *file,
struct instruction *insn,
unsigned long *table_size)
{

This seems to be a partial implementation as it doesn't set
'table_size', resulting in undefined behavior when the size gets used by
objtool later. I suppose this patch should be squashed with the next
one?

OK, makes sense, I will squash them into one single patch.

Let me wait for some days, if no more comments, I will send v6
in the next week.

Thanks,
Tiezhu