aboutsummaryrefslogtreecommitdiff
path: root/elfinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'elfinfo.cpp')
-rw-r--r--elfinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/elfinfo.cpp b/elfinfo.cpp
index 5982dd1..6ddbceb 100644
--- a/elfinfo.cpp
+++ b/elfinfo.cpp
@@ -192,6 +192,8 @@ int main(int argc, char **argv) {
LdScript file = loader.load(ld_filename);
memoryAreas.insert(memoryAreas.end(), file.memoryAreas.begin(), file.memoryAreas.end());
+ } catch (std::exception &e) {
+ errx(EX_DATAERR, "Unhandled exception when parsing LD script. The parser is new and fragile, so please file a bug and send me your LD script: %s", e.what());
} catch (...) {
errx(EX_DATAERR, "Unhandled exception when parsing LD script. The parser is new and fragile, so please file a bug and send me your LD script.");
}