Re: [PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-08-06 Thread changhuaixin
> On Aug 6, 2020, at 11:08 PM, Ingo Molnar wrote: > > > * changhuaixin wrote: > >> Hi, Ingo >> >> Another way to write SHT_PROGBITS is using elf_create_section to write >> orc_lookup table headers, when orc_unwind_ip table and orc_unwind table are >> written. Is this a better solution?

Re: [PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-08-06 Thread Ingo Molnar
* changhuaixin wrote: > Hi, Ingo > > Another way to write SHT_PROGBITS is using elf_create_section to write > orc_lookup table headers, when orc_unwind_ip table and orc_unwind table are > written. Is this a better solution? > > diff --git a/tools/objtool/orc_gen.c b/tools/objtool/orc_gen.c

Re: [PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-08-03 Thread changhuaixin
Hi, Ingo Another way to write SHT_PROGBITS is using elf_create_section to write orc_lookup table headers, when orc_unwind_ip table and orc_unwind table are written. Is this a better solution? diff --git a/tools/objtool/orc_gen.c b/tools/objtool/orc_gen.c index 3f98dcfbc177..860d4dcec8e6 100644

Re: [PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-07-24 Thread Ingo Molnar
* Huaixin Chang wrote: > In order to edit orc_lookup table via sorttable, type of section > orc_lookup needs to be SHT_PROGBITS instead of SHT_NOBITS. > > Linker script doesn't seem to allow manual specification of the section > type, so just write a byte into the section instead. > >

[PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-07-22 Thread Huaixin Chang
In order to edit orc_lookup table via sorttable, type of section orc_lookup needs to be SHT_PROGBITS instead of SHT_NOBITS. Linker script doesn't seem to allow manual specification of the section type, so just write a byte into the section instead. Signed-off-by: Josh Poimboeuf Signed-off-by:

[PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-06-03 Thread Huaixin Chang
In order to edit orc_lookup table via sorttable, type of section orc_lookup needs to be SHT_PROGBITS instead of SHT_NOBITS. Linker script doesn't seem to allow manual specification of the section type, so just write a byte into the section instead. Signed-off-by: Josh Poimboeuf Signed-off-by:

[PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-06-03 Thread Huaixin Chang
In order to edit orc_lookup table via sorttable, type of section orc_lookup needs to be SHT_PROGBITS instead of SHT_NOBITS. Linker script doesn't seem to allow manual specification of the section type, so just write a byte into the section instead. Signed-off-by: Josh Poimboeuf Signed-off-by: