diff options
author | Milad Fa <46688537+miladfarca@users.noreply.github.com> | 2021-09-23 16:23:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 16:23:02 -0400 |
commit | f3a42743db4df4c98e1df690045577c775daf20b (patch) | |
tree | e63f48001f0d1e339d9c1b95fcdbf2c6da4edcd5 /absl/base/attributes.h | |
parent | 020619c4aa68d13dfbdd6107a373912bb5ea85af (diff) | |
download | abseil-f3a42743db4df4c98e1df690045577c775daf20b.tar.gz abseil-f3a42743db4df4c98e1df690045577c775daf20b.tar.bz2 abseil-f3a42743db4df4c98e1df690045577c775daf20b.zip |
Initial support for AIX (#1021)
* Init support of AIX
* make sysinfo change AIX specific
* Relocate TBF
* Add comments for .csect psudo op.
Diffstat (limited to 'absl/base/attributes.h')
-rw-r--r-- | absl/base/attributes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/absl/base/attributes.h b/absl/base/attributes.h index 2665d8f3..e3907827 100644 --- a/absl/base/attributes.h +++ b/absl/base/attributes.h @@ -318,8 +318,16 @@ // `__start_ ## name` and `__stop_ ## name` symbols to bracket the section. // This functionality is supported by GNU linker. #ifndef ABSL_ATTRIBUTE_SECTION_VARIABLE +#ifdef _AIX +// __attribute__((section(#name))) on AIX is achived by using the `.csect` psudo +// op which includes an additional integer as part of its syntax indcating +// alignment. If data fall under different alignments then you might get a +// compilation error indicating a `Section type conflict`. +#define ABSL_ATTRIBUTE_SECTION_VARIABLE(name) +#else #define ABSL_ATTRIBUTE_SECTION_VARIABLE(name) __attribute__((section(#name))) #endif +#endif // ABSL_DECLARE_ATTRIBUTE_SECTION_VARS // |