Deleted Added
sdiff udiff text old ( 5874:7a74edaa8741 ) new ( 6392:9345de6fca33 )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 93 unchanged lines hidden (view full) ---

102 arch = ObjectFile::UnknownArch;
103 }
104
105 //Detect the operating system
106 switch (ehdr.e_ident[EI_OSABI])
107 {
108
109 case ELFOSABI_LINUX:
110 case ELFOSABI_ARM:
111 opSys = ObjectFile::Linux;
112 break;
113 case ELFOSABI_SOLARIS:
114 opSys = ObjectFile::Solaris;
115 break;
116 case ELFOSABI_TRU64:
117 opSys = ObjectFile::Tru64;
118 break;
119 default:
120 opSys = ObjectFile::UnknownOpSys;
121 }
122
123 //take a look at the .note.ABI section
124 //It can let us know what's what.
125 if (opSys == ObjectFile::UnknownOpSys) {
126 Elf_Scn *section;

--- 318 unchanged lines hidden ---