Lines Matching refs:std
78 class ElfError : public std::exception
81 ElfError(const std::string& rFile, const std::string& rMessage);
86 std::string m_sMessage;
89 ElfError::ElfError(const std::string& rFile, const std::string& rMessage) in ElfError()
111 bool isFixAndContinueSymbol(const std::string& rSymbol) in isFixAndContinueSymbol()
129 void adjustVisibility( const std::string& rFile, int fd, bool bVerbose) in adjustVisibility()
132 std::cout << "File: " << rFile << ": adjusting 'fix and continue' symbol visibility\n"; in adjustVisibility()
162 if ( nSymbols > std::numeric_limits< int >::max() ) in adjustVisibility()
173 std::string sSymbolName(elf_strptr(pElf, aShdr.sh_link, aSymbol.st_name)); in adjustVisibility()
181 std::cout << "Symbol: " << sSymbolName << ", " in adjustVisibility()
184 std::cout << SymbolType[nSymbolType]; in adjustVisibility()
186 std::cout << nSymbolType; in adjustVisibility()
188 std::cout << ", Binding: "; in adjustVisibility()
190 std::cout << SymbolBinding[nSymbolBind]; in adjustVisibility()
192 std::cout << nSymbolBind; in adjustVisibility()
194 std::cout << ", Visibility: "; in adjustVisibility()
196 std::cout << SymbolVisibility[nSymbolVisibility]; in adjustVisibility()
198 std::cout << nSymbolVisibility; in adjustVisibility()
200 std::cout << "-> " << SymbolVisibility[STV_HIDDEN] << "\n"; in adjustVisibility()
225 void processObject(const std::string& rFile, bool bPreserve, bool bVerbose) in processObject()
231 std::string sMessage("adjustVisibilty() failed: can't open file "); in processObject()
234 sMessage += std::strerror(errno); in processObject()
235 throw std::runtime_error(sMessage); in processObject()
240 std::string sMessage("adjustVisibilty() failed: can't stat file "); in processObject()
243 sMessage += std::strerror(errno); in processObject()
244 throw std::runtime_error(sMessage); in processObject()
255 std::string sMessage("adjustVisibilty() failed: can't reset timestamp "); in processObject()
258 sMessage += std::strerror(errno); in processObject()
259 throw std::runtime_error(sMessage); in processObject()
280 std::cerr << "Unrecognized option: -" << optopt << "\n"; in main()
288 std::cout << "usage: " << argv[0] << " [-pv] <elf-object> ...\n"; in main()
289 std::cout << " -p preserve time stamps\n"; in main()
290 std::cout << " -v verbose\n"; in main()
298 processObject(std::string(argv[optind]), bPreserve, bVerbose); in main()
301 } catch (std::exception& e) { in main()
302 std::cerr << argv[0] << ": " << e.what() << "\n"; in main()