forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Support __attribute__((section("x"))
- Loading branch information
1 parent
e133964
commit 9c66a66
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "expr2c.h" | ||
|
||
#include <algorithm> | ||
#include <cassert> | ||
#include <cctype> | ||
#include <cstdio> | ||
|
@@ -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; | ||
} | ||
|
||
|