Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-20 Thread Josh Poimboeuf
On Wed, Feb 19, 2025 at 05:49:01PM +0800, Huacai Chen wrote: > > Looks like that's not going to work. Without patch 7 I'm getting a > > warning (upgraded to a build error with a pending change to upgrade > > objtool warnings to errors): > > > > arch/loongarch/kernel/machine_kexec.o: error: objtool

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-19 Thread Huacai Chen
On Wed, Feb 19, 2025 at 1:46 AM Josh Poimboeuf wrote: > > On Mon, Feb 17, 2025 at 11:13:43AM +0800, Huacai Chen wrote: > > On Thu, Feb 13, 2025 at 10:51 AM Josh Poimboeuf wrote: > > > > > > On Wed, Feb 12, 2025 at 03:22:45PM +0800, Huacai Chen wrote: > > > > > The new series now has 7 patches: >

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-18 Thread Josh Poimboeuf
On Mon, Feb 17, 2025 at 11:13:43AM +0800, Huacai Chen wrote: > On Thu, Feb 13, 2025 at 10:51 AM Josh Poimboeuf wrote: > > > > On Wed, Feb 12, 2025 at 03:22:45PM +0800, Huacai Chen wrote: > > > > The new series now has 7 patches: > > > > > > > > Tiezhu Yang (7): > > > > objtool: Handle various sy

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-16 Thread Huacai Chen
On Thu, Feb 13, 2025 at 10:51 AM Josh Poimboeuf wrote: > > On Wed, Feb 12, 2025 at 03:22:45PM +0800, Huacai Chen wrote: > > > The new series now has 7 patches: > > > > > > Tiezhu Yang (7): > > > objtool: Handle various symbol types of rodata > > > objtool: Handle different entry size of rodata

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-12 Thread Josh Poimboeuf
On Wed, Feb 12, 2025 at 03:22:45PM +0800, Huacai Chen wrote: > > The new series now has 7 patches: > > > > Tiezhu Yang (7): > > objtool: Handle various symbol types of rodata > > objtool: Handle different entry size of rodata > > objtool: Handle PC relative relocation type > > objtool/Loong

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-11 Thread Huacai Chen
On Wed, Feb 12, 2025 at 7:30 AM Josh Poimboeuf wrote: > > On Tue, Feb 11, 2025 at 07:59:57PM +0800, Huacai Chen wrote: > > Hi, Josh, > > > > On Tue, Feb 11, 2025 at 5:26 AM Josh Poimboeuf wrote: > > > > > > On Mon, Feb 10, 2025 at 02:07:43PM +0800, Tiezhu Yang wrote: > > > > On 01/15/2025 09:34 A

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-11 Thread Josh Poimboeuf
On Tue, Feb 11, 2025 at 07:59:57PM +0800, Huacai Chen wrote: > Hi, Josh, > > On Tue, Feb 11, 2025 at 5:26 AM Josh Poimboeuf wrote: > > > > On Mon, Feb 10, 2025 at 02:07:43PM +0800, Tiezhu Yang wrote: > > > On 01/15/2025 09:34 AM, Josh Poimboeuf wrote: > > > > On Sat, Jan 11, 2025 at 02:57:42PM +0

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-11 Thread Huacai Chen
Hi, Josh, On Tue, Feb 11, 2025 at 5:26 AM Josh Poimboeuf wrote: > > On Mon, Feb 10, 2025 at 02:07:43PM +0800, Tiezhu Yang wrote: > > On 01/15/2025 09:34 AM, Josh Poimboeuf wrote: > > > On Sat, Jan 11, 2025 at 02:57:42PM +0800, Tiezhu Yang wrote: > > > > Hi Josh and Peter, > > > > > > > > On 12/17

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-10 Thread Josh Poimboeuf
On Mon, Feb 10, 2025 at 02:07:43PM +0800, Tiezhu Yang wrote: > On 01/15/2025 09:34 AM, Josh Poimboeuf wrote: > > On Sat, Jan 11, 2025 at 02:57:42PM +0800, Tiezhu Yang wrote: > > > Hi Josh and Peter, > > > > > > On 12/17/2024 09:08 AM, Tiezhu Yang wrote: > > > > This version is based on tip/tip.git

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-02-10 Thread Tiezhu Yang
On 01/15/2025 09:34 AM, Josh Poimboeuf wrote: On Sat, Jan 11, 2025 at 02:57:42PM +0800, Tiezhu Yang wrote: Hi Josh and Peter, On 12/17/2024 09:08 AM, Tiezhu Yang wrote: This version is based on tip/tip.git objtool/core branch [1], add some weak and arch-specific functions to make the generic c

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-01-14 Thread Josh Poimboeuf
On Sat, Jan 11, 2025 at 02:57:42PM +0800, Tiezhu Yang wrote: > Hi Josh and Peter, > > On 12/17/2024 09:08 AM, Tiezhu Yang wrote: > > This version is based on tip/tip.git objtool/core branch [1], add some weak > > and arch-specific functions to make the generic code more readable, tested > > with t

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-01-11 Thread Tiezhu Yang
Hi Josh and Peter, On 12/17/2024 09:08 AM, Tiezhu Yang wrote: This version is based on tip/tip.git objtool/core branch [1], add some weak and arch-specific functions to make the generic code more readable, tested with the latest upstream mainline Binutils, GCC and Clang. ... [1] https://git

Re: [PATCH v6 0/9] Add jump table support for objtool on LoongArch

2025-01-04 Thread Huacai Chen
Hi, Josh and Peter, I think this series (except the last patch, but that one can be a separate one) is good enough now, right? If so, I think there is some ways to get it upstream: 1) I merge objtool/core from tip.git to the loongarch tree, then apply this whole series with your acked-by; 2) You

[PATCH v6 0/9] Add jump table support for objtool on LoongArch

2024-12-17 Thread Tiezhu Yang
This version is based on tip/tip.git objtool/core branch [1], add some weak and arch-specific functions to make the generic code more readable, tested with the latest upstream mainline Binutils, GCC and Clang. The first 6 patches are preparation for patch #7 to enable jump table for objtool on Loo