diff options
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc index 0eb38ad..c566b99 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -614,6 +614,18 @@ General_options::parse_fix_v4bx_interworking(const char*, const char*, this->fix_v4bx_ = FIX_V4BX_INTERWORKING; } +void +General_options::parse_EB(const char*, const char*, Command_line*) +{ + this->endianness_ = ENDIANNESS_BIG; +} + +void +General_options::parse_EL(const char*, const char*, Command_line*) +{ + this->endianness_ = ENDIANNESS_LITTLE; +} + } // End namespace gold. namespace @@ -845,7 +857,8 @@ General_options::General_options() excluded_libs_(), symbols_to_retain_(), section_starts_(), - fix_v4bx_(FIX_V4BX_NONE) + fix_v4bx_(FIX_V4BX_NONE), + endianness_(ENDIANNESS_NOT_SET) { // Turn off option registration once construction is complete. gold::options::ready_to_register = false; |