diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-07-17 16:03:47 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-07-17 16:03:47 +0200 |
commit | 0f57cc9750282ce0284fe69b06f161dea2bfc8cb (patch) | |
tree | 50afd51fec2d05752cc49441ae47c40aa831cf84 /includes | |
parent | c5e53ec8da9b11e351893742096f76e2bceb5730 (diff) | |
download | elfinfo-0f57cc9750282ce0284fe69b06f161dea2bfc8cb.tar.gz elfinfo-0f57cc9750282ce0284fe69b06f161dea2bfc8cb.tar.bz2 elfinfo-0f57cc9750282ce0284fe69b06f161dea2bfc8cb.tar.xz elfinfo-0f57cc9750282ce0284fe69b06f161dea2bfc8cb.zip |
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.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/trygvis/elfinfo/Ld.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<std::string> messages) : runtime_error("Parse error"), messages(messages) {} + + const std::vector<std::string> messages; +}; + enum class MemoryAttribute { R, W, X }; |