Skip to content

Commit

Permalink
fixup! Support __attribute__((section("x"))
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Apr 19, 2018
1 parent e133964 commit 9c66a66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ansi-c/expr2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Author: Daniel Kroening, [email protected]

#include "expr2c.h"

#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdio>
Expand Down Expand Up @@ -89,6 +90,9 @@ static std::string clean_identifier(const irep_idt &id)
*it2='_';
}

// rewrite . as used in ELF section names
std::replace(dest.begin(), dest.end(), '.', '_');

return dest;
}

Expand Down

0 comments on commit 9c66a66

Please sign in to comment.