Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
36 lines
546 B
C
36 lines
546 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#define VDSO__MAP_NAME "[vdso]"
|
|
|
|
/*
|
|
* Include definition of find_vdso_map() also used in util/vdso.c for
|
|
* building perf.
|
|
*/
|
|
#include "util/find-vdso-map.c"
|
|
|
|
int main(void)
|
|
{
|
|
void *start, *end;
|
|
size_t size, written;
|
|
|
|
if (find_vdso_map(&start, &end))
|
|
return 1;
|
|
|
|
size = end - start;
|
|
|
|
while (size) {
|
|
written = fwrite(start, 1, size, stdout);
|
|
if (!written)
|
|
return 1;
|
|
start += written;
|
|
size -= written;
|
|
}
|
|
|
|
if (fflush(stdout))
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|