diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-04-06 10:06:37 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-05-13 10:54:41 -0300 |
commit | 111254f3e1e1a7ae5c2eda7cebc98f93a61d417c (patch) | |
tree | d39aa8e501b91e24e65a3fa702343daa925c3b12 /misc/utimes.c | |
parent | 9bcd12d223a8990254b65e2dada54faa5d2742f3 (diff) | |
download | glibc-111254f3e1e1a7ae5c2eda7cebc98f93a61d417c.zip glibc-111254f3e1e1a7ae5c2eda7cebc98f93a61d417c.tar.gz glibc-111254f3e1e1a7ae5c2eda7cebc98f93a61d417c.tar.bz2 |
Add declare_object_symbol_alias for assembly codes (BZ #28128)
There are 2 problems in:
#define declare_symbol_alias(symbol, original, type, size) \
declare_symbol_alias_1 (symbol, original, type, size)
#ifdef __ASSEMBLER__
# define declare_symbol_alias_1(symbol, original, type, size) \
strong_alias (original, symbol); \
.type C_SYMBOL_NAME (symbol), %##type; \
.size C_SYMBOL_NAME (symbol), size
1. .type and .size are substituted by arguments.
2. %##type is expanded to "% type" due to the GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101613
But assembler doesn't support "% type".
Workaround BZ #28128 by
1. Don't define declare_symbol_alias for assembly codes.
2. Define declare_object_symbol_alias for assembly codes.
Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'misc/utimes.c')
0 files changed, 0 insertions, 0 deletions