summaryrefslogtreecommitdiff
path: root/chromium/sandbox
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2014-04-23 16:54:47 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-08-31 11:52:30 +0200
commit502231fe8a8ec88c60a8a4d61637c1e97ff058a5 (patch)
tree1ee91dd189443281c285ff46a40dfe9143a727b4 /chromium/sandbox
parent7c60b708d2026e499402e545c6bd2d4190e7e827 (diff)
downloadqtwebengine-chromium-502231fe8a8ec88c60a8a4d61637c1e97ff058a5.tar.gz
<chromium> Do not directly override libc symbols from the library.
Instead we export _override symbols and add the symbol renaming directly into the QtWebEngineProcess source. Change-Id: I15049609dd77be6de2a2398f25a37fff1b6f5519 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'chromium/sandbox')
-rw-r--r--chromium/sandbox/linux/services/libc_interceptor.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/chromium/sandbox/linux/services/libc_interceptor.cc b/chromium/sandbox/linux/services/libc_interceptor.cc
index 55ab6954f22..e9ee9d24e44 100644
--- a/chromium/sandbox/linux/services/libc_interceptor.cc
+++ b/chromium/sandbox/linux/services/libc_interceptor.cc
@@ -226,9 +226,6 @@ static void InitLibcLocaltimeFunctions() {
// to set visibility attribute to "default" to export the symbol, as it is set
// to "hidden" by default in chrome per build/common.gypi.
__attribute__((__visibility__("default"))) struct tm* localtime_override(
- const time_t* timep) __asm__("localtime");
-
-__attribute__((__visibility__("default"))) struct tm* localtime_override(
const time_t* timep) {
if (g_am_zygote_or_renderer && g_use_localtime_override) {
static struct tm time_struct;
@@ -250,10 +247,6 @@ __attribute__((__visibility__("default"))) struct tm* localtime_override(
return res;
}
-// Use same trick to override localtime64(), localtime_r() and localtime64_r().
-__attribute__((__visibility__("default"))) struct tm* localtime64_override(
- const time_t* timep) __asm__("localtime64");
-
__attribute__((__visibility__("default"))) struct tm* localtime64_override(
const time_t* timep) {
if (g_am_zygote_or_renderer && g_use_localtime_override) {
@@ -278,10 +271,6 @@ __attribute__((__visibility__("default"))) struct tm* localtime64_override(
__attribute__((__visibility__("default"))) struct tm* localtime_r_override(
const time_t* timep,
- struct tm* result) __asm__("localtime_r");
-
-__attribute__((__visibility__("default"))) struct tm* localtime_r_override(
- const time_t* timep,
struct tm* result) {
if (g_am_zygote_or_renderer && g_use_localtime_override) {
ProxyLocaltimeCallToBrowser(*timep, result, nullptr, 0);
@@ -302,10 +291,6 @@ __attribute__((__visibility__("default"))) struct tm* localtime_r_override(
__attribute__((__visibility__("default"))) struct tm* localtime64_r_override(
const time_t* timep,
- struct tm* result) __asm__("localtime64_r");
-
-__attribute__((__visibility__("default"))) struct tm* localtime64_r_override(
- const time_t* timep,
struct tm* result) {
if (g_am_zygote_or_renderer && g_use_localtime_override) {
ProxyLocaltimeCallToBrowser(*timep, result, nullptr, 0);