Skip to content

Commit 9c66a66

Browse files
committed
fixup! Support __attribute__((section("x"))
1 parent e133964 commit 9c66a66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ansi-c/expr2c.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Author: Daniel Kroening, [email protected]
88

99
#include "expr2c.h"
1010

11+
#include <algorithm>
1112
#include <cassert>
1213
#include <cctype>
1314
#include <cstdio>
@@ -89,6 +90,9 @@ static std::string clean_identifier(const irep_idt &id)
8990
*it2='_';
9091
}
9192

93+
// rewrite . as used in ELF section names
94+
std::replace(dest.begin(), dest.end(), '.', '_');
95+
9296
return dest;
9397
}
9498

0 commit comments

Comments
 (0)