Revert "selinux: Relocate ss_initialized to a separate 4k page"

This reverts commit 50ced54e5b.

That out of tree patch causes the resulting kernel image to be too
large, causing ld.lld to error; since .bss is specified twice.

Fixes the observed error:
ld.lld: error: output file too large: 18446743524330100280 bytes

when using LLD without LTO enabled.

Bug: 151154720
Reported-by: Matthias Maennich <maennich@google.com>
Debugged-by: Fangrui Song <maskray@google.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Iebb8135630132cd4ae49f3d2d1e85bd61cfa6111
This commit is contained in:
Nick Desaulniers 2020-03-10 15:36:45 -07:00 • committed by Michael Bestas
commit e0e0acaa2a
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -80,7 +80,8 @@ static DEFINE_RWLOCK(policy_rwlock);
static struct sidtab sidtab;
struct policydb policydb;
int ss_initialized __aligned(0x1000) __attribute__((section(".bss_rtic")));
int ss_initialized;
/*
* The largest sequence number that has been used when
* providing an access decision to the access vector cache.