Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
development
Commits
ad8fb668
Commit
ad8fb668
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Download
Plain Diff
Merge "Add elf note containing ndk version info" into ndk-r14-release
parents
b022ca2a
9b54e26f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ndk/platforms/common/src/crtbrand.c
ndk/platforms/common/src/crtbrand.c
+8
-0
No files found.
ndk/platforms/common/src/crtbrand.c
View file @
ad8fb668
...
...
@@ -36,6 +36,10 @@ typedef int int32_t[sizeof(int) == 4];
#define ABI_SECTION ".note.android.ident"
#define ABI_NOTETYPE 1
#define ABI_ANDROID_API PLATFORM_SDK_VERSION
#define ABI_NDK_VERSION "%NDK_VERSION%"
#define ABI_NDK_BUILD_NUMBER "%NDK_BUILD_NUMBER%"
#define NDK_RESERVED_SIZE 64
#define L 9999
...
...
@@ -63,10 +67,14 @@ static const struct {
int32_t
type
;
char
name
[
sizeof
ABI_VENDOR
];
int32_t
android_api
;
char
ndk_version
[
NDK_RESERVED_SIZE
];
char
ndk_build_number
[
NDK_RESERVED_SIZE
];
}
abitag
__attribute__
((
section
(
ABI_SECTION
),
aligned
(
4
),
used
))
=
{
sizeof
ABI_VENDOR
,
sizeof
(
int32_t
),
ABI_NOTETYPE
,
ABI_VENDOR
,
ABI_ANDROID_API
,
ABI_NDK_VERSION
,
ABI_NDK_BUILD_NUMBER
,
};
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment