欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

32bit / 64bit co-exist Linux, ld-linux.so, l

系統(tǒng) 2401 0

before this, confirm that you don't have 32bit libs notably 32bit libc, e.g. you have?

/lib64/ld-linux-x86-64.so.2? but not? /lib32/ld-linux.so.2

https://wiki.debian.org/Multiarch?

?

run following on Debian 64bit to add basic support for 32bit programs (anyway you need ld-linux at least...)

      dpkg --add-
      
        architecture i386;

aptitude 
      
      
        install
      
       libc6-i386 libc6-dev-i386  (note that don't use libc6:i386 otherwise apt thinks you'd use libc-i386 as the main libc)
    

?

write a simple "hello world", and compile with different flags

      
        gcc
      
       -m32 hello.c -
      
        o hello32

ldd hello32

        linux
      
      -gate.so.
      
        1
      
       (
      
        0xf7765000
      
      
        )

        libc.so.
      
      
        6
      
       => /lib32/libc.so.
      
        6
      
       (
      
        0xf75a2000
      
      
        )

        
      
      /lib/
      
        ld
      
      -linux.so.
      
        2
      
       (
      
        0xf7766000
      
      
        )






      
      
        gcc
      
       -m64 hello.c -
      
        o hello64

ldd hello64

        linux
      
      -vdso.so.
      
        1
      
       (
      
        0x00007fff1cfa4000
      
      
        )

        libc.so.
      
      
        6
      
       => /lib/x86_64-linux-gnu/libc.so.
      
        6
      
       (
      
        0x00007fe71d001000
      
      
        )

        
      
      /lib64/
      
        ld
      
      -linux-x86-
      
        64
      
      .so.
      
        2
      
       (
      
        0x00007fe71d3c1000
      
      )
    

What is ld-linux.so.2?

This program is defined as part of the structure of the ELF file, in the? INTERP ?section of the program header. For 32bit linux binaries, this is the typical name of the 32bit interpreter. For 64bit binaries, you'll find it is typically called? ld-linux-x86_64.so.2 ?(for 64bit x86 platforms).

You can determine this information yourself using? readelf -l , and the INTERP section:

    
      INTERP         0x0000000000000238 0x0000000000400238 0x0000000000400238

               0x000000000000001c 0x000000000000001c  R      1

    [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
    
  

?

What is linux-gate.so.1? very good article on this:? http://www.trilithium.com/johan/2005/08/linux-gate/

there's not supposed to be a linux-gate.so.1 file present anywhere on the file system ; it's a virtual? DSO (dynamic shared object) , a shared object exposed by the kernel at a fixed address in every process' memory:
http://en.wikipedia.org/wiki/VDSO

for example, run "cat /proc/self/maps" and it'll give the memory layout of cat process

      
        cat
      
       /proc/self/
      
        maps


      
      
        00400000
      
      -0040b000 r-xp 
      
        00000000
      
      
        08
      
      :
      
        01
      
      
        403141
      
                                   /bin/
      
        cat
      
      
        

0060a000
      
      -0060b000 r--p 0000a000 
      
        08
      
      :
      
        01
      
      
        403141
      
                                   /bin/
      
        cat
      
      
        

0060b000
      
      -0060c000 rw-p 0000b000 
      
        08
      
      :
      
        01
      
      
        403141
      
                                   /bin/
      
        cat
      
      
        02376000
      
      -
      
        02397000
      
       rw-p 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
                                          [heap]

7fb1eabf3000
      
      -7fb1ead93000 r-xp 
      
        00000000
      
      
        08
      
      :
      
        01
      
      
        391959
      
                           /lib/x86_64-linux-gnu/libc-
      
        2.18
      
      
        .so

7fb1ead93000
      
      -7fb1eaf92000 ---p 001a0000 
      
        08
      
      :
      
        01
      
      
        391959
      
                           /lib/x86_64-linux-gnu/libc-
      
        2.18
      
      
        .so

7fb1eaf92000
      
      -7fb1eaf96000 r--p 0019f000 
      
        08
      
      :
      
        01
      
      
        391959
      
                           /lib/x86_64-linux-gnu/libc-
      
        2.18
      
      
        .so

7fb1eaf96000
      
      -7fb1eaf98000 rw-p 001a3000 
      
        08
      
      :
      
        01
      
      
        391959
      
                           /lib/x86_64-linux-gnu/libc-
      
        2.18
      
      
        .so

7fb1eaf98000
      
      -7fb1eaf9c000 rw-p 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
        

7fb1eaf9c000
      
      -7fb1eafbc000 r-xp 
      
        00000000
      
      
        08
      
      :
      
        01
      
      
        391749
      
                           /lib/x86_64-linux-gnu/
      
        ld
      
      -
      
        2.18
      
      
        .so

7fb1eb018000
      
      -7fb1eb1a1000 r--p 
      
        00000000
      
      
        08
      
      :
      
        01
      
      
        1052029
      
                          /usr/lib/locale/locale-
      
        archive

7fb1eb1a1000
      
      -7fb1eb1a4000 rw-p 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
        

7fb1eb1b9000
      
      -7fb1eb1bb000 rw-p 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
        

7fb1eb1bb000
      
      -7fb1eb1bc000 r--p 0001f000 
      
        08
      
      :
      
        01
      
      
        391749
      
                           /lib/x86_64-linux-gnu/
      
        ld
      
      -
      
        2.18
      
      
        .so

7fb1eb1bc000
      
      -7fb1eb1bd000 rw-p 
      
        00020000
      
      
        08
      
      :
      
        01
      
      
        391749
      
                           /lib/x86_64-linux-gnu/
      
        ld
      
      -
      
        2.18
      
      
        .so

7fb1eb1bd000
      
      -7fb1eb1be000 rw-p 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
        

7fff48a06000
      
      -7fff48a27000 rw-p 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
                                  [stack]

7fff48a49000
      
      -7fff48a4b000 r-xp 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
      
                                  [vdso]

ffffffffff600000
      
      -ffffffffff601000 r-xp 
      
        00000000
      
      
        00
      
      :
      
        00
      
      
        0
      
                        [vsyscall]
    

?

32bit / 64bit co-exist Linux, ld-linux.so, linux-gate.so.1 etc


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 无名者电影在线完整版免费 | 久久国产精品视频 | 国产午夜精品一区二区三区嫩草 | 亚洲精品一区二区三区四区高清 | 一级做a爰性色毛片免费 | 亚洲无线一二三四手机 | 国产精品密蕾丝视频下载 | 香蕉视频黄色 | 国产日韩欧美一区二区 | 大香久久| 污污网站国产精品白丝袜 | 电家庭影院午夜 | 男女午夜影院 | 成年在线视频免费视频观看 | 九九九九精品视频在线播放 | av免费网站在线观看 | 日韩一区二区在线观看 | 成人破解版 | 一级a级国产不卡毛片 | 男女下面一进一出无遮挡着 | 国产福利不卡视频在免费播放 | 国产美女久久 | 日本三级久久 | 国产探花在线精品一区二区 | 亚洲欧美精品综合中文字幕 | 欧美日韩视频在线 | 欧美一级二级三级 | 久草福利网 | 久草国产精品 | 99这里只有精品视频 | 国产高清在线精品免费 | 污视频导航 | 中文字幕一区二区三区四区五区 | 羞羞视频免费网站在线看 | 亚洲国产精品99久久久久久久久 | 久热国产精品视频 | 亚洲 欧美 日韩 在线 | 欧美日韩一区二区在线观看视频 | 免费国产黄频在线观看视频 | 久久激情五月丁香伊人 | 成人国产精品免费网站 |