* [ptxdist] arm-1136jfs-linux-gnueabihf-ld: warning: -z , relro ignored. at module compilation
@ 2014-10-28 11:00 Matthias Klein
2014-10-28 11:16 ` Juergen Borleis
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Klein @ 2014-10-28 11:00 UTC (permalink / raw)
To: ptxdist
Hello,
can anyone give me a tip what the following warnings mean while
compiling a kernel module:
make V=0 -C
/home/user/rpi-ptxdist/platform-linux-raspberrypi/build-target/linux-3.17 SUBDIRS=/home/mak/rpi_gpio_irq_test
modules
make[1]: Entering directory '/home/mak/rpi-dt-linux'
CC [M] /home/mak/rpi_gpio_irq_test/irq_test.o
LD [M] /home/mak/rpi_gpio_irq_test/irq_test_driver.o
/home/user/rpi-ptxdist/platform-linux-raspberrypi/sysroot-host/lib/wrapper/real/arm-1136jfs-linux-gnueabihf-ld:
warning: -z ,relro ignored.
/home/user/rpi-ptxdist/platform-linux-raspberrypi/sysroot-host/lib/wrapper/real/arm-1136jfs-linux-gnueabihf-ld:
warning: -z ,now ignored.
Building modules, stage 2.
MODPOST 1 modules
CC /home/mak/rpi_gpio_irq_test/irq_test_driver.mod.o
LD [M] /home/mak/rpi_gpio_irq_test/irq_test_driver.ko
/home/user/rpi-ptxdist/platform-linux-raspberrypi/sysroot-host/lib/wrapper/real/arm-1136jfs-linux-gnueabihf-ld:
warning: -z ,relro ignored.
/home/user/rpi-ptxdist/platform-linux-raspberrypi/sysroot-host/lib/wrapper/real/arm-1136jfs-linux-gnueabihf-ld:
warning: -z ,now ignored.
make[1]: Leaving directory '/home/mak/rpi-dt-linux'
The code can be found here:
https://github.com/matthiasklein/rpi_gpio_irq_test
Best regards,
Matthias
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] arm-1136jfs-linux-gnueabihf-ld: warning: -z , relro ignored. at module compilation
2014-10-28 11:00 [ptxdist] arm-1136jfs-linux-gnueabihf-ld: warning: -z , relro ignored. at module compilation Matthias Klein
@ 2014-10-28 11:16 ` Juergen Borleis
2014-10-28 13:20 ` Matthias Klein
0 siblings, 1 reply; 3+ messages in thread
From: Juergen Borleis @ 2014-10-28 11:16 UTC (permalink / raw)
To: ptxdist; +Cc: Matthias Klein
Hi Matthias,
On Tuesday 28 October 2014 12:00:33 Matthias Klein wrote:
> can anyone give me a tip what the following warnings mean while
> compiling a kernel module:#
>
> [...]
>
> arm-1136jfs-linux-gnueabihf-ld: warning: -z ,now ignored.
>
> [...]
Did you add something to "ptxdist platform -> architecture -> extra toolchain
options"?
Or did you enable the "hardening options" (like TARGET_HARDEN_RELRO for
example)? Then you should let PTXdist sort out these options for your kernel
module. They are important for userland only. Refer the "kernel.make" rule
file and the macro "*_WRAPPER_BLACKLIST". The same you need for your module
rule file.
Regards,
Juergen
--
Pengutronix e.K. | Juergen Borleis |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] arm-1136jfs-linux-gnueabihf-ld: warning: -z , relro ignored. at module compilation
2014-10-28 11:16 ` Juergen Borleis
@ 2014-10-28 13:20 ` Matthias Klein
0 siblings, 0 replies; 3+ messages in thread
From: Matthias Klein @ 2014-10-28 13:20 UTC (permalink / raw)
To: ptxdist
Am 28.10.2014 um 12:16 schrieb Juergen Borleis:
> Hi Matthias,
>
> On Tuesday 28 October 2014 12:00:33 Matthias Klein wrote:
>> can anyone give me a tip what the following warnings mean while
>> compiling a kernel module:#
>>
>> [...]
>>
>> arm-1136jfs-linux-gnueabihf-ld: warning: -z ,now ignored.
>>
>> [...]
> Did you add something to "ptxdist platform -> architecture -> extra toolchain
> options"?
>
> Or did you enable the "hardening options" (like TARGET_HARDEN_RELRO for
> example)? Then you should let PTXdist sort out these options for your kernel
> module. They are important for userland only. Refer the "kernel.make" rule
> file and the macro "*_WRAPPER_BLACKLIST". The same you need for your module
> rule file.
Thanks for the pointer!
TARGET_HARDEN_FORTIFY, TARGET_HARDEN_RELRO and TARGET_HARDEN_BINDNOW was
activated which I was not aware about.
Best regards,
Matthias
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-28 14:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-28 11:00 [ptxdist] arm-1136jfs-linux-gnueabihf-ld: warning: -z , relro ignored. at module compilation Matthias Klein
2014-10-28 11:16 ` Juergen Borleis
2014-10-28 13:20 ` Matthias Klein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox