On Mon, Mar 23, 2020 at 10:17 AM Martin Liška <mli...@suse.cz> wrote: > > On 3/23/20 5:06 PM, H.J. Lu wrote: > > #if __has_include (<endian.h>) > > ... > > #ifdef __BYTE_ORDER > > #if __BYTE_ORDER == __BIG_ENDIAN > > ... > > > > We support V2 interface only if <endian.h> defines __BYTE_ORDER? > > Right now we rely on __BIG_ENDIAN__ which is a weak endianess detection. > So we either need a very robust endianess detection (as mention in this > thread): > https://github.com/llvm-mirror/compiler-rt/blob/master/lib/builtins/int_endianness.h
I prefer this one. > or > > we'll come up with ld_plugin_symbol_v2 > > or > > we will shift values in 'int def' in order to support symbol_type and > section_kind. > > What do you prefer H.J.? > Thanks, > Martin -- H.J.