diff options
Diffstat (limited to 'gold/target-select.h')
-rw-r--r-- | gold/target-select.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gold/target-select.h b/gold/target-select.h index da27bd4..5757d5b 100644 --- a/gold/target-select.h +++ b/gold/target-select.h @@ -49,7 +49,13 @@ class Target_selector // If we can handle this target, return a pointer to a target // structure. The size and endianness are known. - virtual Target* recognize(int machine, int osabi, int abiversion) = 0; + virtual Target* + recognize(int machine, int osabi, int abiversion) = 0; + + // If NAME matches the target, return a pointer to a target + // structure. + virtual Target* + recognize_by_name(const char* name) = 0; // Return the next Target_selector in the linked list. Target_selector* @@ -84,6 +90,10 @@ class Target_selector extern Target* select_target(int machine, int size, bool big_endian, int osabi, int abiversion); +// Select a target using a BFD name. + +extern Target* select_target_by_name(const char* name); + } // End namespace gold. #endif // !defined(GOLD_TARGET_SELECT_H) |