Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Yauheni Kaliuta
Hi, Ard! > On Wed, 19 Jul 2017 20:10:17 +0100, Ard Biesheuvel wrote: > On 19 July 2017 at 20:04, Yauheni Kaliuta wrote: >> Hi, Lucas! >> >>> On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: >> > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Yauheni Kaliuta
Hi, Ard! > On Wed, 19 Jul 2017 20:10:17 +0100, Ard Biesheuvel wrote: > On 19 July 2017 at 20:04, Yauheni Kaliuta wrote: >> Hi, Lucas! >> >>> On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: >> > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta >> > wrote: >> >>

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Ard Biesheuvel
On 19 July 2017 at 20:04, Yauheni Kaliuta wrote: > Hi, Lucas! > >> On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: > > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta > > wrote: > >> Normally exported symbol's crc is

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Ard Biesheuvel
On 19 July 2017 at 20:04, Yauheni Kaliuta wrote: > Hi, Lucas! > >> On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: > > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta > > wrote: > >> Normally exported symbol's crc is stored as absolute (SHN_ABS) > >> value of special named

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Yauheni Kaliuta
Hi, Lucas! > On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta > wrote: >> Normally exported symbol's crc is stored as absolute (SHN_ABS) >> value of special named symbol __crc_. >> >> When the

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Yauheni Kaliuta
Hi, Lucas! > On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta > wrote: >> Normally exported symbol's crc is stored as absolute (SHN_ABS) >> value of special named symbol __crc_. >> >> When the kernel and modules are built

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Lucas De Marchi
On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta wrote: > Normally exported symbol's crc is stored as absolute (SHN_ABS) > value of special named symbol __crc_. > > When the kernel and modules are built with the config option > CONFIG_MODULE_REL_CRCS, all the CRCs are

Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Lucas De Marchi
On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta wrote: > Normally exported symbol's crc is stored as absolute (SHN_ABS) > value of special named symbol __crc_. > > When the kernel and modules are built with the config option > CONFIG_MODULE_REL_CRCS, all the CRCs are put in a special section >

[PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Yauheni Kaliuta
Normally exported symbol's crc is stored as absolute (SHN_ABS) value of special named symbol __crc_. When the kernel and modules are built with the config option CONFIG_MODULE_REL_CRCS, all the CRCs are put in a special section and the __crc_ symbols values are offsets in the section. See patch

[PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

2017-07-19 Thread Yauheni Kaliuta
Normally exported symbol's crc is stored as absolute (SHN_ABS) value of special named symbol __crc_. When the kernel and modules are built with the config option CONFIG_MODULE_REL_CRCS, all the CRCs are put in a special section and the __crc_ symbols values are offsets in the section. See patch