public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* how to know host endianness in binutils
@ 2023-12-21 14:30 Jan Beulich
  2023-12-21 15:11 ` H.J. Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jan Beulich @ 2023-12-21 14:30 UTC (permalink / raw)
  To: Binutils; +Cc: Nick Clifton, Alan Modra

Hello,

looking around, I can't seem to be able to find any standardized way of
knowing host endianness in binutils (in gas/ in particular). As was
pointed out to me, the new cpu_flags_from_attr() in config/tc-i386.c
won't work as is on big-endian hosts, yet I would really, really like
to avoid needing to enumerate all of the dozens of bitfields in that
function (converting one kind of bitfield to another). That's not the
least because this set constantly grows.

I can see config/tc-bpf.c checking WORDS_BIGENDIAN, but I couldn't
convince myself (from looking at the generated config.h) that one can
really rely on that.

Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-09 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 14:30 how to know host endianness in binutils Jan Beulich
2023-12-21 15:11 ` H.J. Lu
2024-01-02 11:29 ` Nick Clifton
2024-01-09 16:19 ` Michael Matz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).