From 0f57cc9750282ce0284fe69b06f161dea2bfc8cb Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 17 Jul 2016 16:03:47 +0200 Subject: parser/lexer: o Support special '/DISCARD/' as NAME. o Add 'SORT' as a token. It is equivalent with SORT_BY_NAME. The new rule sort_by_name coverts both. Ld: o Don't die on unknown sections, they can be referenced before declared. Doesn't matter for this app anyway. --- includes/trygvis/elfinfo/Ld.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'includes/trygvis/elfinfo/Ld.h') diff --git a/includes/trygvis/elfinfo/Ld.h b/includes/trygvis/elfinfo/Ld.h index cab466d..09dcaec 100644 --- a/includes/trygvis/elfinfo/Ld.h +++ b/includes/trygvis/elfinfo/Ld.h @@ -8,6 +8,13 @@ namespace trygvis { namespace elfinfo { +class LdParseException : public std::runtime_error { +public: + explicit LdParseException(const std::vector messages) : runtime_error("Parse error"), messages(messages) {} + + const std::vector messages; +}; + enum class MemoryAttribute { R, W, X }; -- cgit v1.2.3