lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 30 Aug 2006 08:33:36 -0700
From:	"Kaz Kylheku" <kaz@...gmasystems.com>
To:	<linux-kernel@...r.kernel.org>
Subject: How to prevent an object file from being thrown away?

I have an object file which contains only static objects and functions.
One of them is marked __init, and annotated with a late_initcall().
However, the file, which is added to a lib.a archive, is still
ultimately thrown away by the linker. 

I can solve it with a dummy reference to a symbol in that file from
another module, but is there some "officially blessed" Linux kernel
Makefile trick to make the linker do the
--whole-archive/--no-whole-archive around a particular lib.a?



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ