Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxϵÄELFÎļþ¸ñʽ¼ò½é

£¨1£©¸ÅÊö
      Executable and linking format(ELF)ÎļþÊÇx86 LinuxϵͳϵÄÒ»ÖÖ³£ÓÃÄ¿±êÎļþ(object file)¸ñʽ£¬ELFÎļþ¸ñʽ±È½Ï¸´ÔÓ£¬±¾ÎÄÖ»ÊǼòÒª½éÉÜËüµÄ½á¹¹¡£ÓÐÈýÖÖÖ÷ÒªÀàÐÍ£º
(1)ÊÊÓÚÁ¬½ÓµÄ¿ÉÖض¨Î»Îļþ(relocatable file)£¬¿ÉÓëÆäËüÄ¿±êÎļþÒ»Æð´´½¨¿ÉÖ´ÐÐÎļþºÍ¹²ÏíÄ¿±êÎļþ¡£
(2)ÊÊÓÚÖ´ÐеĿÉÖ´ÐÐÎļþ(executable file)£¬ÓÃÓÚÌṩ³ÌÐòµÄ½ø³ÌÓ³Ïñ£¬¼ÓÔص½ÄÚ´æÖ´ÐС£
(3)¹²ÏíÄ¿±êÎļþ(shared object file)£¬Á¬½ÓÆ÷¿É½«ËüÓëÆäËü¿ÉÖض¨Î»ÎļþºÍ¹²ÏíÄ¿±êÎļþÁ¬½Ó³ÉÆäËüµÄÄ¿±êÎļþ£¬¶¯Ì¬Á¬½ÓÆ÷Óֿɽ«ËüÓë¿ÉÖ´ÐÐÎļþºÍÆäËü¹²ÏíÄ¿±êÎļþ½áºÏÆðÀ´´´½¨Ò»¸ö½ø³ÌÓ³Ïñ¡£
£¨2£©Îļþ¸ñʽ
      ELF headerÔÚÎļþ¿ªÊ¼´¦ÃèÊöÁËÕû¸öÎļþµÄ×éÖ¯£¬SectionÌṩÁËÄ¿±êÎļþµÄ¸÷ÏîÐÅÏ¢£¨ÈçÖ¸Áî¡¢Êý¾Ý¡¢·ûºÅ±í¡¢Öض¨Î»ÐÅÏ¢µÈ£©£¬Program header tableÖ¸³öÔõÑù´´½¨½ø³ÌÓ³Ïñ£¬º¬ÓÐÿ¸öprogram headerµÄÈë¿Ú£¬Section header table°üº¬Ã¿Ò»¸ösectionµÄÈë¿Ú£¬¸ø³öÃû×Ö¡¢´óСµÈÐÅÏ¢¡£
                     
£¨3£©Êý¾Ý±íʾ
    ELFÊý¾Ý±àÂë˳ÐòÓë»úÆ÷Ïà¹Ø£¬Êý¾ÝÀàÐÍÓÐÁùÖÖ£¬¼û±í1¡£ 
                 
£¨4£© ELFÎļþÍ· 
      Ïóbmp¡¢exeµÈÎļþÒ»Ñù£¬ELFµÄÎļþÍ·°üº¬Õû¸öÎļþµÄ¿ØÖƽṹ¡£ËüµÄ¶¨ÒåÈçÏ£º
#define EI_NIDENT 16
typedef struct{
        unsigned char e_ident[EI_NIDENT];
        Elf32_Half e_type;
        Elf32_Half e_machine;
        Elf32_Word e_version;
        Elf32_Addr e_entry;
        Elf32_Off e_phoff;
        Elf32_Off e_shoff;
        Elf32_Word e_flags;
        Elf32_Half e_ehsize;
        El


Ïà¹ØÎĵµ£º

Linux°²È«ÉèÖÃÊÖ²á

1¡¢Bios¡¡Security
Ò»¶¨Òª¸øBiosÉèÖÃÃÜÂ룬ÒÔ·Àͨ¹ýÔÚBiosÖиıäÆô¶¯Ë³Ðò£¬¶ø¿ÉÒÔ´ÓÈíÅÌÆô¶¯¡£ÕâÑù¿ÉÒÔ×èÖ¹±ðÈËÊÔͼÓÃÌØÊâµÄÆô¶¯ÅÌÆô¶¯ÄãµÄϵͳ£¬»¹¿ÉÒÔ×èÖ¹±ðÈ˽øÈëBios¸Ä¶¯ÆäÖеÄÉèÖ㨱ÈÈçÔÊÐíͨ¹ýÈíÅÌÆô¶¯µÈ£©¡£
2¡¢LILO¡¡Security
ÔÚ"/etc/lilo.conf"ÎļþÖмÓÈëÏÂÃæÈý¸ö²ÎÊý£ºtime-out,restricted,password¡£ÕâÈý¸ö ......

ѧϰ±Ê¼Ç Unix/Linux½ø³Ì¼äͨÐÅ

ÃæÊÔʱһÔٵر»Îʵ½½ø³Ì¼äͨÐŵÄÇé¿ö£¬¶øÎÒµÄÀí½âһֱͣÁôÔÚ¸ÅÄîÉϺÍÃû´ÊÉÏ£¬±ØÐëÒª×öµãʵÑé¼ÓÉîÀí½â¡£
IPC:Interprocess communication¡£ÓÐЩIPCµÄ·½·¨²»½ö¿ÉÒÔÓÃÓÚÏàͬÖ÷»ú£¬Ò²¿ÉÒÔÓÃÓÚ²»Í¬Ö÷»ú£¬ÈçsocketsºÍSTREAMS¡£
¾­µäIPCÖ®Ò»£ºpipes(¹ÜµÀ)
,ʹÓÃ×î¹ã·º£¬¾ßÓÐÇ×Ôµ¹Øϵ
µÄ½ø³Ì¼ä²ÅÄÜʹÓùܵÀ½øÐÐIPC¡£
ʹÓÃÁ˹ܵ ......

linux¹âÅ̾µÏñÎļþÖÆ×÷¹¥ÂÔ[ת]

 Ëæ׏âÅ̼̿»úÔÚlinux¼ÆËã»úÉϵÄÆÕ¼°£¬ÒÔisoΪÖ÷µÄ¹âÅÌÓ³ÏñÎļþÖÆ×÷¡¢×ª»»¡¢±à¼­µÈ³ÉÁË´ó¼Ò·Ç³£¹ØÐĵĶ«Î÷¡£isoµÈ¸ñʽµÄÎļþÊÇÒ»ÖÖÊý¾ÝÔÚÊý¾Ý¹âÅÌÉϵÄ×éÖ¯ÐÎʽ£¬¼´¹âÅÌÉϵÄÎļþϵͳ¸ñʽ¡£ÄÇô£¬ÄÄЩÈí¼þ¿ÉÒÔÖÆ×÷¹âÅÌÓ³ÏñÎļþ£¬ËûÃǵĸñʽת»»¹¦ÄÜÓÖÊÇÈçºÎÄØ£¿ÄÄЩÈí¼þ¿ÉÒÔÖ±½ÓÖÆ×÷×ÔÆô¶¯µÄ¹âÅÌÄØ£¿Ãæ¶Ô¸÷ÖÖ¹âÅÌÓ³ÏñÖ ......

Linux ±à³Ì¾­µäÊé¼®ÍƼö

³ÉΪһÃû¾«Í¨ Linux ³ÌÐòÉè¼ÆµÄ¸ß¼¶³ÌÐòÔ±Ò»Ö±ÊDz»ÉÙÅóÓÑ×Î×ÎÒÔÇóµÄÄ¿±ê¡£¸ù¾ÝÖлªÓ¢²ÅÍøͳ¼ÆÊý¾Ý£¬±±¾©µØÇø Linux ³ÌÐòÔ±ÔÂнƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 1.8 ±¶¡¢Java ³ÌÐòÔ±µÄ 2.6 ±¶£¬ Linux ³ÌÐòÔ±ÄêÖÕ½±½ðƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 2.9 ±¶¡£Í¬Ê±Êý¾ÝÏÔʾ£¬Ëæ׏¤×÷¾­ÑéµÄÔö³¤£¬ Linux ³ÌÐòÔ±Óë Windows ³ÌÐòÔ±µÄÊÕÈë²î¾à» ......

LinuxÏÂÎļþºÍĿ¼µÄÑÕÉ«´ú±íµÄº¬Òå

Èç¹û²»ÏëʹÓÃ顏É«£¬¾ÍÖ±½Ó°Ñ
/etc/DIR.COLORS
mvÁ˾ͿÉÒÔÁË¡£
Èç¹û這個Îļþ´æÔÚ£¬
ÄÇô
À¶É«±íʾĿ¼£»
ÂÌÉ«±íʾ¿ÉÖ´ÐÐÎļþ£»
ºìÉ«±íʾѹËõÎļþ£»
dzÀ¶É«±íʾÁ´½ÓÎļþ£»
»ÒÉ«±íʾÆäËüÎļþ£»
ºìÉ«ÉÁ˸±íʾÁ´½ÓµÄÎļþÓÐÎÊÌâÁË£»
»ÆÉ«ÊÇÉ豸Îļþ£¬°üÀ¨block, char, fifo¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ