Permalink
Browse files

Fix clang build

  • Loading branch information...
1 parent c03a11a commit 74b080aaad3acedaea154336f2757dcd974914fc Shinichiro Hamaji committed Dec 14, 2012
Showing with 6 additions and 4 deletions.
  1. +2 −0 ld-mac.cc
  2. +4 −4 mach-o.cc
View
@@ -731,6 +731,8 @@ class MachOLoader {
}
private:
+ // Because .loop64 cannot be redefined.
+ __attribute__((noinline))
void boot(uint64_t entry, int argc, char** argv, char** envp);
void pushTrampolineCode(unsigned int c) {
View
@@ -116,10 +116,10 @@ class MachOImpl : public MachO {
virtual void close();
private:
- class RebaseState;
- friend class MachOImpl::RebaseState;
- class BindState;
- friend class MachOImpl::BindState;
+ struct RebaseState;
+ friend struct MachOImpl::RebaseState;
+ struct BindState;
+ friend struct MachOImpl::BindState;
template <class segment_command, class section>
void readSegment(char* cmds_ptr,

0 comments on commit 74b080a

Please sign in to comment.