当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : firefox-49.0.1.tar里面的"firefox"和"firefox-bin"的区别是什么?
帖子发表于 : 2016-10-08 21:16 

注册: 2013-05-26 6:58
帖子: 2154
系统: Debian 9
送出感谢: 893
接收感谢: 30
firefox-49.0.1.tar里面的"firefox"和"firefox-bin"的区别是什么?
网上搜索说它俩一样
但是他们的MD5不一样
代码:
$ md5sum ./firefox ./firefox-bin
d784553ca945bad6c6f8afee2060612e  ./firefox
4390da13658760bbebb012c5bc19577c  ./firefox-bin

它俩大小只差4字节
代码:
163320   firefox
163324   firefox-bin


_________________
Linux桌面优化综合贴[2017.09.18](欢迎各位补充或指正误区)
[2016.03.10]会C语言但看不懂英文文档的点这里,一个用C语言编写的简陋学习工具
单硬盘通过iso文件实机安装Debian的方法
重启或操作fcitx时失去响应的一个解决方法,不妨试试看


最后由 科学之子 编辑于 2016-10-08 22:39,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: firefox-49.0.1.tar里面的"firefox"和"firefox-bin"的区别是什么?
帖子发表于 : 2016-10-08 22:27 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
https://bugzilla.mozilla.org/show_bug.cgi?id=552864#c25
Mike Hommey 写道:
One of the reasons I'm still providing a firefox-bin executable is that historically, on unix, because of the startup script, some desktop environments would pick firefox-bin as the name of the application they need to restart (in desktop session management, most of the time). I never checked if that was still a concern, but if that is, a symlink could be helpful.

Debian 提供的 firefox-esr 套件中 /usr/lib/firefox-esr/firefox-bin 链接至 /usr/lib/firefox-esr/firefox-esr

代码:
$ objdump -s firefox > 1
$ objdump -s firefox-bin > 2
$ colordiff 1 2
2c2
< firefox:     file format elf64-x86-64
---
> firefox-bin:     file format elf64-x86-64
9076c9076,9077
<  0000 66697265 666f782e 64626700 d30f6ce7  firefox.dbg...l.
---
>  0000 66697265 666f782d 62696e2e 64626700  firefox-bin.dbg.
>  0010 d30f6ce7                             ..l.

$ objdump -D firefox > 11
$ objdump -D firefox-bin > 22
$ colordiff 11 22
2c2
< firefox:     file format elf64-x86-64
---
> firefox-bin:     file format elf64-x86-64
44210,44214c44210,44215
<    6: 78 2e                   js     36 <_init@@Base-0x40470a>
<    8: 64 62                   fs (bad) {%k5}
<    a: 67 00 d3                addr32 add %dl,%bl
<    d: 0f 6c                   (bad) 
<    f: e7                      .byte 0xe7
---
>    6: 78 2d                   js     35 <_init@@Base-0x40470b>
>    8: 62                      (bad)  {%k5}
>    9: 69 6e 2e 64 62 67 00    imul   $0x676264,0x2e(%rsi),%ebp
>   10: d3 0f                   rorl   %cl,(%rdi)
>   12: 6c                      insb   (%dx),%es:(%rdi)
>   13: e7                      .byte 0xe7

$ hexdump -C firefox > 111
$ hexdump -C firefox-bin > 222
$ diff 111 222 | pastebinit
http://paste.debian.net/858229/


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户



_________________
评价: 3.7% 科学之子
 
页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译