lkml.org 
[lkml]   [2023]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 1/8] objtool/LoongArch: Enable objtool to be built
From
Date


On 10/10/2023 08:45 PM, Huacai Chen wrote:
> Hi, Tiezhu,
>
> On Mon, Oct 9, 2023 at 9:03 PM Tiezhu Yang <yangtiezhu@loongson.cn> wrote:
>>
>> Add the minimal changes to enable objtool build on LoongArch,
>> most of the functions are stubs to only fix the build errors
>> when make -C tools/objtool.
>>
>> This is similar with commit e52ec98c5ab1 ("objtool/powerpc:
>> Enable objtool to be built on ppc").

...

>> diff --git a/tools/objtool/arch/loongarch/include/arch/special.h b/tools/objtool/arch/loongarch/include/arch/special.h
>> new file mode 100644
>> index 0000000..1a8245c
>> --- /dev/null
>> +++ b/tools/objtool/arch/loongarch/include/arch/special.h
>> @@ -0,0 +1,33 @@
>> +/* SPDX-License-Identifier: GPL-2.0-or-later */
>> +#ifndef _OBJTOOL_ARCH_SPECIAL_H
>> +#define _OBJTOOL_ARCH_SPECIAL_H
>> +
>> +/*
>> + * See more info about struct exception_table_entry
>> + * in arch/loongarch/include/asm/extable.h
>> + */
>> +#define EX_ENTRY_SIZE 12
>> +#define EX_ORIG_OFFSET 0
>> +#define EX_NEW_OFFSET 4
> Other archs use tab for indentation in special.h
>

OK, thank you, will do it.

Thanks,
Tiezhu

\
 
 \ /
  Last update: 2023-10-14 04:13    [W:0.086 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site