diff options
| author | Jan Kratochvil <[email protected]> | 2013-04-26 17:00:50 +0200 |
|---|---|---|
| committer | Jan Kratochvil <[email protected]> | 2013-04-26 17:00:50 +0200 |
| commit | 1704baf67698c269bc81fbaec0483e53d9709702 (patch) | |
| tree | 1c4d86e2825b96a4041fda42446512a89e47c68a /libdwfl/link_map.c | |
| parent | cdaaf2153a1f40d1be080c8ff6e10767b51a1c96 (diff) | |
Unify {BE,LE}{32,64} in lib/system.h.
lib/
* system.h (LE64, BE64): Move here the definitions from
libdwfl/link_map.c.
libdwfl/
* link_map.c (BE32, BE64, LE32, LE64): Delete the definitions, move
them to lib/system.h.
Signed-off-by: Jan Kratochvil <[email protected]>
Diffstat (limited to 'libdwfl/link_map.c')
| -rw-r--r-- | libdwfl/link_map.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libdwfl/link_map.c b/libdwfl/link_map.c index 00913fe2..19f92df8 100644 --- a/libdwfl/link_map.c +++ b/libdwfl/link_map.c @@ -39,18 +39,6 @@ #define PROBE_VAL32 sizeof (Elf32_Phdr) #define PROBE_VAL64 sizeof (Elf64_Phdr) -#if BYTE_ORDER == BIG_ENDIAN -# define BE32(x) (x) -# define BE64(x) (x) -# define LE32(x) bswap_32 (x) -# define LE64(x) bswap_64 (x) -#else -# define LE32(x) (x) -# define LE64(x) (x) -# define BE32(x) bswap_32 (x) -# define BE64(x) bswap_64 (x) -#endif - /* Examine an auxv data block and determine its format. Return true iff we figured it out. */ |
