diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2022-11-18 09:50:46 +0000 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2022-11-19 09:11:32 +0000 |
commit | edd537ca2f38b94738fe25c2dc9b8c21bc7847f2 (patch) | |
tree | dad755f6f70ae5d70ab7bc251193ceeff04f20a5 /deps/v8/src/base/compiler-specific.h | |
parent | bcc704f6e527a2b072bf1477e72ae49a5a96c51a (diff) | |
download | node-new-edd537ca2f38b94738fe25c2dc9b8c21bc7847f2.tar.gz |
deps: update V8 to 10.8.168.20
PR-URL: https://github.com/nodejs/node/pull/45230
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Diffstat (limited to 'deps/v8/src/base/compiler-specific.h')
-rw-r--r-- | deps/v8/src/base/compiler-specific.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/base/compiler-specific.h b/deps/v8/src/base/compiler-specific.h index 3221de0834..d7ddefd713 100644 --- a/deps/v8/src/base/compiler-specific.h +++ b/deps/v8/src/base/compiler-specific.h @@ -135,4 +135,15 @@ #define ALIGNAS(byte_alignment) __attribute__((aligned(byte_alignment))) #endif +// Forces the linker to not GC the section corresponding to the symbol. +#if defined(__has_attribute) +#if __has_attribute(used) && __has_attribute(retain) +#define V8_DONT_STRIP_SYMBOL __attribute__((used, retain)) +#endif // __has_attribute(used) && __has_attribute(retain) +#endif // defined(__has_attribute) + +#if !defined(V8_DONT_STRIP_SYMBOL) +#define V8_DONT_STRIP_SYMBOL +#endif // !defined(V8_DONT_STRIP_SYMBOL) + #endif // V8_BASE_COMPILER_SPECIFIC_H_ |