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
ndk
Commits
942a54f8
Commit
942a54f8
authored
12 years ago
by
Andrew Hsieh
Committed by
android code review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Update TOOLCHAIN_GIT_DATE & misc fixes"
parents
7db290bf
66fedaab
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
5 deletions
+19
-5
build/tools/build-host-gcc.sh
build/tools/build-host-gcc.sh
+1
-1
build/tools/dev-defaults.sh
build/tools/dev-defaults.sh
+1
-1
build/tools/dev-rebuild-ndk.sh
build/tools/dev-rebuild-ndk.sh
+1
-1
build/tools/toolchain-patches/binutils/0001-Fix-ld-gc-sections.patch
.../toolchain-patches/binutils/0001-Fix-ld-gc-sections.patch
+14
-0
build/tools/toolchain-patches/build/0001-Options-brought-in-from-core-combo-for-IA.patch
...uild/0001-Options-brought-in-from-core-combo-for-IA.patch
+1
-1
docs/ANDROID-MK.html
docs/ANDROID-MK.html
+1
-1
No files found.
build/tools/build-host-gcc.sh
View file @
942a54f8
...
...
@@ -721,7 +721,7 @@ select_toolchain_for_host ()
dump
""
exit
1
fi
local
DARWINMINVER
=
$(
darwin_arch_to_version
_min
$2
)
local
DARWINMINVER
=
$(
darwin_arch_to_
min_
version
$2
)
check_darwin_sdk
$DARWIN_SYSROOT
$DARWINARCH
try_host_prefix
"
$DARWIN_TOOLCHAIN
"
-m
$(
tag_to_bits
$1
)
--sysroot
"
$DARWIN_SYSROOT
"
if
[
-z
"
$HOST_FULLPREFIX
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
build/tools/dev-defaults.sh
View file @
942a54f8
...
...
@@ -23,7 +23,7 @@ GNUSTL_SUBDIR=sources/cxx-stl/gnu-libstdc++
# The date to use when downloading toolchain sources from AOSP servers
# Leave it empty for tip of tree.
TOOLCHAIN_GIT_DATE
=
2012-0
5
-1
7
TOOLCHAIN_GIT_DATE
=
2012-0
6
-1
0
# The space-separated list of all GCC versions we support in this NDK
DEFAULT_GCC_VERSION_LIST
=
"4.4.3"
...
...
This diff is collapsed.
Click to expand it.
build/tools/dev-rebuild-ndk.sh
View file @
942a54f8
...
...
@@ -33,7 +33,7 @@ PROGDIR=`cd $PROGDIR && pwd`
# Name of this NDK release
OPTION_NDK_RELEASE
=
"r6x-eng"
OPTION_NDK_RELEASE
=
`
date
+%Y%m%d
`
register_var_option
"--release=<rel_name>"
OPTION_NDK_RELEASE
"Version of release"
# Should we only Build for Linux platform?
...
...
This diff is collapsed.
Click to expand it.
build/tools/toolchain-patches/binutils/0001-Fix-ld-gc-sections.patch
0 → 100644
View file @
942a54f8
diff --git a/binutils-2.21/bfd/elflink.c b/binutils-2.21/bfd/elflink.c
index 51dae66..753bb9c 100644
--- a/binutils-2.21/bfd/elflink.c
+++ b/binutils-2.21/bfd/elflink.c
@@ -11575,6 +11575,9 @@
struct elf_gc_sweep_symbol_info
static bfd_boolean
elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data)
{
+ if (h->root.type == bfd_link_hash_warning)
+ h = (struct elf_link_hash_entry *) h->root.u.i.link;
+
if (!h->mark
&& (((h->root.type == bfd_link_hash_defined
|| h->root.type == bfd_link_hash_defweak)
This diff is collapsed.
Click to expand it.
build/tools/toolchain-patches/build/0001-Options-brought-in-from-core-combo-for-IA.patch
View file @
942a54f8
...
...
@@ -11,7 +11,7 @@ diff --git a/Makefile.in b/Makefile.in
index 0b73ff6..c7b5847 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -4
3
4,6 +4
3
4,35 @@
GCC_CONFIG_ARGS += $(GCC_CONFIG_LIBSTDCXX_V3) --disable-libssp \
@@ -44
1
,6 +44
1
,35 @@
GCC_CONFIG_ARGS += $(GCC_CONFIG_LIBSTDCXX_V3) --disable-libssp \
--disable-tls --disable-libitm
CFLAGS_FOR_TARGET += -DTARGET_POSIX_IO -fno-short-enums
...
...
This diff is collapsed.
Click to expand it.
docs/ANDROID-MK.html
View file @
942a54f8
...
...
@@ -620,7 +620,7 @@ LOCAL_DISABLE_NO_EXECUTE
LOCAL_DISABLE_RELRO
By default, NDK compiled code is built with read-only relocations
and GOT protection. This instruct the runtime linker to mark
and GOT protection. This instruct
s
the runtime linker to mark
certain regions of memory as being read-only after relocation,
making certain security exploits (such as GOT overwrites) harder
to perform.
...
...
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