`
MauerSu
  • 浏览: 515504 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Accessing a corrupted shared library

 
阅读更多
源:https://stackoverflow.com/questions/30419857/accessing-a-corrupted-shared-library
评:
As you've sort of realized, you're trying to compile assembly for a 32 bit machine, on a 64 bit machine. With the commands you copied and pasted, you're letting as and ld know that you're compiling something 32 bit.

The issue you've run into is that you don't have a 32 bit version of libc available to link against.

apt-get install libc6:i386 libc6-dev-i386

Then assemble the code with:

as --32 -o cpuid2.o cpuid2.s

and finally link it with:

ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o cpuid2 -lc cpuid2.o

Then it should work:

[jkominek@kyatt /tmp]$ ./cpuid2
The processor Vendor ID is 'GenuineIntel'
分享到:
评论

相关推荐

    mac subversion

    * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - ...

    MDK main函数运行前的分析.pdf

    讲解了stm32f103运行main函数之前微控制器所做的工作。 总结启动文件的整个过程,分为如下: (1) 系统初始化,包括对中断向量表的重新映射; (2) 加载 RW 段; ...(3) ZI 段清零;...(5) 初始化微库(具体干...

    Accessing-Databases-JDBC

    ### 使用 JDBC 访问数据库 在现代软件开发中,与数据库进行交互是不可或缺的一部分。Java Database Connectivity (JDBC) 是 Java 平台上的一个标准库,用于与关系型数据库进行通信。通过使用 JDBC API,开发者可以...

    Accessing Web Services from a Visual Web Application

    "Accessing Web Services from a Visual Web Application"这一主题主要关注如何在基于Visual Web的应用程序中集成Web服务。Visual Web工具通常提供了直观的界面,使开发者能够轻松地连接到Web服务并使用它们的功能。...

    IN_DG_IPJ_Indy_Host_Library_API_Reference_Manual_v2_6_0_20120504_R1.pdf

    accessing an Indy RFID Technology-based Radio Module (RFID radio module) 1 . The document begins with a system level overview of the interface and a discussion of topics related to interface ...

    linux sqlapi++ gcc-4.4 crack

    SQLAPI++ is a C++ library for accessing multiple SQL databases Oracle SQL Server DB2 Sybase Informix InterBase SQLBase MySQL PostgreSQL SQLite SQL Anywhere and ODBC It uses native APIs of target DBMS ...

    WebAssembly: Accessing C and C++ in Web Applications

    WebAssembly: Accessing C and C++ in Web Applications English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 45m | 213 MB Accelerate web applications with native code using WebAssembly. WebAssembly is a ...

    CCNA Exploration 4 Accessing the WAN章节练习题

    本系列练习题围绕“Accessing the WAN”(访问广域网)这一主题展开,涵盖了一系列关于网络连接、路由协议、广域网技术等内容,是CCNA4第四学期的重要学习材料。 一、WAN基础知识 WAN(Wide Area Network)广域网是...

    CCNA专业术语表

    a shared infrastructure with the same policies as a private network. accounting (auditing) The process of keeping track of a user’s activity while accessing a network’s resources, including the ...

    accessing-and-modifying.zip

    在Python中,有多个库支持图像操作,其中最知名的就是OpenCV(Open Source Computer Vision Library)。 OpenCV是一个开源的计算机视觉库,它提供了大量的功能,包括图像读取、显示、处理、分析以及模式识别等。在...

    世界某地区的图书馆的建筑学报.pdf

    The facade of the library is characterized by a seemingly random arrangement of stone-like elements, evoking the image of piled books, while glass inserts provide natural lighting. This innovative ...

    E4_Accessing_WAN_PPT_CN_1.rar

    这些是学习长在学校培训的CCNA的资料 ,希望对你们有用,哈

    CImg Reference

    The CImg library offers a comprehensive set of tools for image processing, with a focus on simplicity and efficiency. Its modular design and rich feature set make it a valuable resource for anyone ...

    C++标准库(第二版)英文版.pdf

    The C++ Standard Library A Tutorial and Reference (2nd Edition)+cppstdlib-code.zip C++标准库(第二版)英文版.pdf 非扫描版+源代码 Prefaceto the SecondEdition xxiii Acknowledgments for the Second...

    Accessing Twain 2_huntermog_vb.net_

    标题中的"Accessing Twain 2_huntermog_vb.net_"表明这是一个关于使用VB.NET访问TWAIN接口的示例项目。TWAIN是一种标准的软件接口,允许应用程序(如图像扫描器或相机)与硬件设备(如扫描仪)进行通信。在VB.NET...

    OLEdbProNet

    OleDBProNet is written for .NET version 2 or later development with classical COM/ADO data accessing model for fast ... Specifically, it is great in accessing a large table using a proper server cursor.

    Mastering Linux Security and Hardening

    Table of ContentsRunning Linux in a virtual environmentSecuring user accountsSecuring your server with a FirewallEncrypting and SSH HardeningMastering Discretionary Access ControlAccess Control Lists ...

    hibernate常见错误解决方案

    **PropertyNotFoundException: Could not find a setter for property name in class hibernate.Hello_Bean** **异常描述:** 此异常表明Hibernate试图为实体类中的某个属性设置值时找不到对应的setter方法。 **...

    MCTS 70-516 Accessing Data with Microsoft .NET Framework 4

    MCTS Self-Paced Training Kit (Exam 70-516) Accessing Data with Microsoft .NET Framework 4 eBook.pdf.7z. 請用7zip解壓

    OleDBpro数据库远程访问

    It is a light software component for fast and easy development of applications accessing all of data sources, including relational database management systems (DBMSs), non-relational DBMSs and ...

Global site tag (gtag.js) - Google Analytics