'잡동사니'에 해당되는 글 12962건

  1. 2016.02.18 objdump
  2. 2016.02.18 cortex-m3 인터럽트 관련 조사
  3. 2016.02.17 svn merge... 두근두근 6
  4. 2016.02.17 MFI - Made For iP....
  5. 2016.02.17 망할 U+ 공유기 ㅋㅋㅋ
  6. 2016.02.17 nvidia vulkan graphics api
  7. 2016.02.16 ubuntu 15.10 vino.. 접속 불가?
  8. 2016.02.16 xrdp.ini
  9. 2016.02.16 xrdp 구조?
  10. 2016.02.16 그래픽 카드 성능 향상...?? system.ini irq
Linux2016. 2. 18. 18:41

$ objdump -D -p --prefix-addresses

가 무난하려나..


Usage: objdump <option(s)> <file(s)>

 Display information from object <file(s)>.

 At least one of the following switches must be given:

  -a, --archive-headers    Display archive header information

  -f, --file-headers       Display the contents of the overall file header

  -p, --private-headers    Display object format specific file header contents

  -P, --private=OPT,OPT... Display object format specific contents

  -h, --[section-]headers  Display the contents of the section headers

  -x, --all-headers        Display the contents of all headers

  -d, --disassemble        Display assembler contents of executable sections

  -D, --disassemble-all    Display assembler contents of all sections

  -S, --source             Intermix source code with disassembly

  -s, --full-contents      Display the full contents of all sections requested

  -g, --debugging          Display debug information in object file

  -e, --debugging-tags     Display debug information using ctags style

  -G, --stabs              Display (in raw form) any STABS info in the file

  -W[lLiaprmfFsoRt] or

  --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,

          =frames-interp,=str,=loc,=Ranges,=pubtypes,

          =gdb_index,=trace_info,=trace_abbrev,=trace_aranges]

                           Display DWARF info in the file

  -t, --syms               Display the contents of the symbol table(s)

  -T, --dynamic-syms       Display the contents of the dynamic symbol table

  -r, --reloc              Display the relocation entries in the file

  -R, --dynamic-reloc      Display the dynamic relocation entries in the file

  @<file>                  Read options from <file>

  -v, --version            Display this program's version number

  -i, --info               List object formats and architectures supported

  -H, --help               Display this information 


       objdump [-a|--archive-headers]

               [-b bfdname|--target=bfdname]

               [-C|--demangle[=style] ]

               [-d|--disassemble]

               [-D|--disassemble-all]

               [-z|--disassemble-zeroes]

               [-EB|-EL|--endian={big | little }]

               [-f|--file-headers]

               [-F|--file-offsets]

               [--file-start-context]

               [-g|--debugging]

               [-e|--debugging-tags]

               [-h|--section-headers|--headers]

               [-i|--info]

               [-j section|--section=section]

               [-l|--line-numbers]

               [-S|--source]

               [-m machine|--architecture=machine]

               [-M options|--disassembler-options=options]

               [-p|--private-headers]

               [-P options|--private=options]

               [-r|--reloc]

               [-R|--dynamic-reloc]

               [-s|--full-contents]

               [-W[lLiaprmfFsoRt]|

                --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]]

               [-G|--stabs]

               [-t|--syms]

               [-T|--dynamic-syms]

               [-x|--all-headers]

               [-w|--wide]

               [--start-address=address]

               [--stop-address=address]

               [--prefix-addresses]

               [--[no-]show-raw-insn]

               [--adjust-vma=offset]

               [--special-syms]

               [--prefix=prefix]

               [--prefix-strip=level]

               [--insn-width=width]

               [-V|--version]

               [-H|--help]

               objfile... 



[링크 : http://sosal.kr/125]

[링크 : http://devanix.tistory.com/188]

[링크 : http://s3ize.blogspot.com/2012/08/tip-linux-objdump-command.html]

-x

--all-headers

Display all available header information, including the symbol table and relocation entries. Using -x is equivalent to specifying all of -a -f -h -p -r -t.


-h
--section-headers
--headers
Display summary information from the section headers of the object file.
File segments may be relocated to nonstandard addresses, for example by using the -Ttext, -Tdata, or -Tbss options to ld. However, some object file formats, such as a.out, do not store the starting address of the file segments. In those situations, although ld relocates the sections correctly, using objdump -h to list the file section headers cannot show the correct addresses. Instead, it shows the usual addresses, which are implicit for the target.

[링크 : http://linux.die.net/man/1/objdump]




+


gcc tttt.c

$ objdump -x a.out


a.out:     file format elf64-x86-64

a.out

architecture: i386:x86-64, flags 0x00000112:

EXEC_P, HAS_SYMS, D_PAGED

start address 0x0000000000400440


Program Header:

    PHDR off    0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3

         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x

  INTERP off    0x0000000000000238 vaddr 0x0000000000400238 paddr 0x0000000000400238 align 2**0

         filesz 0x000000000000001c memsz 0x000000000000001c flags r--

    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**21

         filesz 0x000000000000071c memsz 0x000000000000071c flags r-x

    LOAD off    0x0000000000000e28 vaddr 0x0000000000600e28 paddr 0x0000000000600e28 align 2**21

         filesz 0x00000000000001f8 memsz 0x0000000000000208 flags rw-

 DYNAMIC off    0x0000000000000e50 vaddr 0x0000000000600e50 paddr 0x0000000000600e50 align 2**3

         filesz 0x0000000000000190 memsz 0x0000000000000190 flags rw-

    NOTE off    0x0000000000000254 vaddr 0x0000000000400254 paddr 0x0000000000400254 align 2**2

         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--

EH_FRAME off    0x000000000000064c vaddr 0x000000000040064c paddr 0x000000000040064c align 2**2

         filesz 0x000000000000002c memsz 0x000000000000002c flags r--

   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3

         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

   RELRO off    0x0000000000000e28 vaddr 0x0000000000600e28 paddr 0x0000000000600e28 align 2**0

         filesz 0x00000000000001d8 memsz 0x00000000000001d8 flags r--


Dynamic Section:

  NEEDED               libc.so.6

  INIT                 0x00000000004003f0

  FINI                 0x0000000000400638

  GNU_HASH             0x0000000000400298

  STRTAB               0x0000000000400318

  SYMTAB               0x00000000004002b8

  STRSZ                0x0000000000000053

  SYMENT               0x0000000000000018

  DEBUG                0x0000000000000000

  PLTGOT               0x0000000000600fe8

  PLTRELSZ             0x0000000000000030

  PLTREL               0x0000000000000007

  JMPREL               0x00000000004003c0

  RELA                 0x00000000004003a8

  RELASZ               0x0000000000000018

  RELAENT              0x0000000000000018

  VERNEED              0x0000000000400378

  VERNEEDNUM           0x0000000000000001

  VERSYM               0x000000000040036c


Version References:

  required from libc.so.6:

    0x09691a75 0x00 03 GLIBC_2.2.5

    0x0d696914 0x00 02 GLIBC_2.4


Sections:

Idx Name          Size      VMA               LMA               File off  Algn

  0 .interp       0000001c  0000000000400238  0000000000400238  00000238  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  1 .note.ABI-tag 00000020  0000000000400254  0000000000400254  00000254  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  2 .note.gnu.build-id 00000024  0000000000400274  0000000000400274  00000274  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  3 .gnu.hash     0000001c  0000000000400298  0000000000400298  00000298  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  4 .dynsym       00000060  00000000004002b8  00000000004002b8  000002b8  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  5 .dynstr       00000053  0000000000400318  0000000000400318  00000318  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  6 .gnu.version  00000008  000000000040036c  000000000040036c  0000036c  2**1

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  7 .gnu.version_r 00000030  0000000000400378  0000000000400378  00000378  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  8 .rela.dyn     00000018  00000000004003a8  00000000004003a8  000003a8  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  9 .rela.plt     00000030  00000000004003c0  00000000004003c0  000003c0  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 10 .init         00000018  00000000004003f0  00000000004003f0  000003f0  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 11 .plt          00000030  0000000000400410  0000000000400410  00000410  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 12 .text         000001f8  0000000000400440  0000000000400440  00000440  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 13 .fini         0000000e  0000000000400638  0000000000400638  00000638  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 14 .rodata       00000004  0000000000400648  0000000000400648  00000648  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 15 .eh_frame_hdr 0000002c  000000000040064c  000000000040064c  0000064c  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 16 .eh_frame     000000a4  0000000000400678  0000000000400678  00000678  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 17 .ctors        00000010  0000000000600e28  0000000000600e28  00000e28  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 18 .dtors        00000010  0000000000600e38  0000000000600e38  00000e38  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 19 .jcr          00000008  0000000000600e48  0000000000600e48  00000e48  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 20 .dynamic      00000190  0000000000600e50  0000000000600e50  00000e50  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 21 .got          00000008  0000000000600fe0  0000000000600fe0  00000fe0  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 22 .got.plt      00000028  0000000000600fe8  0000000000600fe8  00000fe8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 23 .data         00000010  0000000000601010  0000000000601010  00001010  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 24 .bss          00000010  0000000000601020  0000000000601020  00001020  2**3

                  ALLOC

 25 .comment      0000002a  0000000000000000  0000000000000000  00001020  2**0

                  CONTENTS, READONLY

SYMBOL TABLE:

0000000000400238 l    d  .interp        0000000000000000              .interp

0000000000400254 l    d  .note.ABI-tag  0000000000000000              .note.ABI-tag

0000000000400274 l    d  .note.gnu.build-id     0000000000000000              .note.gnu.build-id

0000000000400298 l    d  .gnu.hash      0000000000000000              .gnu.hash

00000000004002b8 l    d  .dynsym        0000000000000000              .dynsym

0000000000400318 l    d  .dynstr        0000000000000000              .dynstr

000000000040036c l    d  .gnu.version   0000000000000000              .gnu.version

0000000000400378 l    d  .gnu.version_r 0000000000000000              .gnu.version_r

00000000004003a8 l    d  .rela.dyn      0000000000000000              .rela.dyn

00000000004003c0 l    d  .rela.plt      0000000000000000              .rela.plt

00000000004003f0 l    d  .init  0000000000000000              .init

0000000000400410 l    d  .plt   0000000000000000              .plt

0000000000400440 l    d  .text  0000000000000000              .text

0000000000400638 l    d  .fini  0000000000000000              .fini

0000000000400648 l    d  .rodata        0000000000000000              .rodata

000000000040064c l    d  .eh_frame_hdr  0000000000000000              .eh_frame_hdr

0000000000400678 l    d  .eh_frame      0000000000000000              .eh_frame

0000000000600e28 l    d  .ctors 0000000000000000              .ctors

0000000000600e38 l    d  .dtors 0000000000000000              .dtors

0000000000600e48 l    d  .jcr   0000000000000000              .jcr

0000000000600e50 l    d  .dynamic       0000000000000000              .dynamic

0000000000600fe0 l    d  .got   0000000000000000              .got

0000000000600fe8 l    d  .got.plt       0000000000000000              .got.plt

0000000000601010 l    d  .data  0000000000000000              .data

0000000000601020 l    d  .bss   0000000000000000              .bss

0000000000000000 l    d  .comment       0000000000000000              .comment

000000000040046c l     F .text  0000000000000000              call_gmon_start

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e28 l     O .ctors 0000000000000000              __CTOR_LIST__

0000000000600e38 l     O .dtors 0000000000000000              __DTOR_LIST__

0000000000600e48 l     O .jcr   0000000000000000              __JCR_LIST__

0000000000400490 l     F .text  0000000000000000              __do_global_dtors_aux

0000000000601020 l     O .bss   0000000000000001              completed.6531

0000000000601028 l     O .bss   0000000000000008              dtor_idx.6533

0000000000400500 l     F .text  0000000000000000              frame_dummy

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e30 l     O .ctors 0000000000000000              __CTOR_END__

0000000000400718 l     O .eh_frame      0000000000000000              __FRAME_END__

0000000000600e48 l     O .jcr   0000000000000000              __JCR_END__

0000000000400600 l     F .text  0000000000000000              __do_global_ctors_aux

0000000000000000 l    df *ABS*  0000000000000000              tttt.c

0000000000600e24 l       .ctors 0000000000000000              __init_array_end

0000000000600e50 l     O .dynamic       0000000000000000              _DYNAMIC

0000000000600e24 l       .ctors 0000000000000000              __init_array_start

0000000000600fe8 l     O .got.plt       0000000000000000              _GLOBAL_OFFSET_TABLE_

00000000004005f0 g     F .text  0000000000000002              __libc_csu_fini

0000000000601010  w      .data  0000000000000000              data_start

0000000000601020 g       *ABS*  0000000000000000              _edata

0000000000400638 g     F .fini  0000000000000000              _fini

0000000000000000       F *UND*  0000000000000000              __stack_chk_fail@@GLIBC_2.4

0000000000600e40 g     O .dtors 0000000000000000              .hidden __DTOR_END__

0000000000000000       F *UND*  0000000000000000              __libc_start_main@@GLIBC_2.2.5

0000000000601010 g       .data  0000000000000000              __data_start

0000000000000000  w      *UND*  0000000000000000              __gmon_start__

0000000000601018 g     O .data  0000000000000000              .hidden __dso_handle

0000000000400648 g     O .rodata        0000000000000004              _IO_stdin_used

0000000000400560 g     F .text  0000000000000089              __libc_csu_init

0000000000601030 g       *ABS*  0000000000000000              _end

0000000000400440 g     F .text  0000000000000000              _start

0000000000601020 g       *ABS*  0000000000000000              __bss_start

0000000000400524 g     F .text  0000000000000036              main

0000000000000000  w      *UND*  0000000000000000              _Jv_RegisterClasses

00000000004003f0 g     F .init  0000000000000000              _init 



디버깅 추가

$ gcc -g tttt.c

$ objdump -x a.out


a.out:     file format elf64-x86-64

a.out

architecture: i386:x86-64, flags 0x00000112:

EXEC_P, HAS_SYMS, D_PAGED

start address 0x0000000000400440


Program Header:

    PHDR off    0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3

         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x

  INTERP off    0x0000000000000238 vaddr 0x0000000000400238 paddr 0x0000000000400238 align 2**0

         filesz 0x000000000000001c memsz 0x000000000000001c flags r--

    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**21

         filesz 0x000000000000071c memsz 0x000000000000071c flags r-x

    LOAD off    0x0000000000000e28 vaddr 0x0000000000600e28 paddr 0x0000000000600e28 align 2**21

         filesz 0x00000000000001f8 memsz 0x0000000000000208 flags rw-

 DYNAMIC off    0x0000000000000e50 vaddr 0x0000000000600e50 paddr 0x0000000000600e50 align 2**3

         filesz 0x0000000000000190 memsz 0x0000000000000190 flags rw-

    NOTE off    0x0000000000000254 vaddr 0x0000000000400254 paddr 0x0000000000400254 align 2**2

         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--

EH_FRAME off    0x000000000000064c vaddr 0x000000000040064c paddr 0x000000000040064c align 2**2

         filesz 0x000000000000002c memsz 0x000000000000002c flags r--

   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3

         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

   RELRO off    0x0000000000000e28 vaddr 0x0000000000600e28 paddr 0x0000000000600e28 align 2**0

         filesz 0x00000000000001d8 memsz 0x00000000000001d8 flags r--


Dynamic Section:

  NEEDED               libc.so.6

  INIT                 0x00000000004003f0

  FINI                 0x0000000000400638

  GNU_HASH             0x0000000000400298

  STRTAB               0x0000000000400318

  SYMTAB               0x00000000004002b8

  STRSZ                0x0000000000000053

  SYMENT               0x0000000000000018

  DEBUG                0x0000000000000000

  PLTGOT               0x0000000000600fe8

  PLTRELSZ             0x0000000000000030

  PLTREL               0x0000000000000007

  JMPREL               0x00000000004003c0

  RELA                 0x00000000004003a8

  RELASZ               0x0000000000000018

  RELAENT              0x0000000000000018

  VERNEED              0x0000000000400378

  VERNEEDNUM           0x0000000000000001

  VERSYM               0x000000000040036c


Version References:

  required from libc.so.6:

    0x09691a75 0x00 03 GLIBC_2.2.5

    0x0d696914 0x00 02 GLIBC_2.4


Sections:

Idx Name          Size      VMA               LMA               File off  Algn

  0 .interp       0000001c  0000000000400238  0000000000400238  00000238  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  1 .note.ABI-tag 00000020  0000000000400254  0000000000400254  00000254  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  2 .note.gnu.build-id 00000024  0000000000400274  0000000000400274  00000274  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  3 .gnu.hash     0000001c  0000000000400298  0000000000400298  00000298  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  4 .dynsym       00000060  00000000004002b8  00000000004002b8  000002b8  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  5 .dynstr       00000053  0000000000400318  0000000000400318  00000318  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  6 .gnu.version  00000008  000000000040036c  000000000040036c  0000036c  2**1

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  7 .gnu.version_r 00000030  0000000000400378  0000000000400378  00000378  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  8 .rela.dyn     00000018  00000000004003a8  00000000004003a8  000003a8  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  9 .rela.plt     00000030  00000000004003c0  00000000004003c0  000003c0  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 10 .init         00000018  00000000004003f0  00000000004003f0  000003f0  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 11 .plt          00000030  0000000000400410  0000000000400410  00000410  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 12 .text         000001f8  0000000000400440  0000000000400440  00000440  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 13 .fini         0000000e  0000000000400638  0000000000400638  00000638  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 14 .rodata       00000004  0000000000400648  0000000000400648  00000648  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 15 .eh_frame_hdr 0000002c  000000000040064c  000000000040064c  0000064c  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 16 .eh_frame     000000a4  0000000000400678  0000000000400678  00000678  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 17 .ctors        00000010  0000000000600e28  0000000000600e28  00000e28  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 18 .dtors        00000010  0000000000600e38  0000000000600e38  00000e38  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 19 .jcr          00000008  0000000000600e48  0000000000600e48  00000e48  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 20 .dynamic      00000190  0000000000600e50  0000000000600e50  00000e50  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 21 .got          00000008  0000000000600fe0  0000000000600fe0  00000fe0  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 22 .got.plt      00000028  0000000000600fe8  0000000000600fe8  00000fe8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 23 .data         00000010  0000000000601010  0000000000601010  00001010  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 24 .bss          00000010  0000000000601020  0000000000601020  00001020  2**3

                  ALLOC

 25 .comment      0000002a  0000000000000000  0000000000000000  00001020  2**0

                  CONTENTS, READONLY

 26 .debug_aranges 00000030  0000000000000000  0000000000000000  0000104a  2**0

                  CONTENTS, READONLY, DEBUGGING

 27 .debug_info   0000009d  0000000000000000  0000000000000000  0000107a  2**0

                  CONTENTS, READONLY, DEBUGGING

 28 .debug_abbrev 0000006f  0000000000000000  0000000000000000  00001117  2**0

                  CONTENTS, READONLY, DEBUGGING

 29 .debug_line   0000003c  0000000000000000  0000000000000000  00001186  2**0

                  CONTENTS, READONLY, DEBUGGING

 30 .debug_str    0000004c  0000000000000000  0000000000000000  000011c2  2**0

                  CONTENTS, READONLY, DEBUGGING

 31 .debug_loc    00000060  0000000000000000  0000000000000000  0000120e  2**0

                  CONTENTS, READONLY, DEBUGGING

SYMBOL TABLE:

0000000000400238 l    d  .interp        0000000000000000              .interp

0000000000400254 l    d  .note.ABI-tag  0000000000000000              .note.ABI-tag

0000000000400274 l    d  .note.gnu.build-id     0000000000000000              .note.gnu.build-id

0000000000400298 l    d  .gnu.hash      0000000000000000              .gnu.hash

00000000004002b8 l    d  .dynsym        0000000000000000              .dynsym

0000000000400318 l    d  .dynstr        0000000000000000              .dynstr

000000000040036c l    d  .gnu.version   0000000000000000              .gnu.version

0000000000400378 l    d  .gnu.version_r 0000000000000000              .gnu.version_r

00000000004003a8 l    d  .rela.dyn      0000000000000000              .rela.dyn

00000000004003c0 l    d  .rela.plt      0000000000000000              .rela.plt

00000000004003f0 l    d  .init  0000000000000000              .init

0000000000400410 l    d  .plt   0000000000000000              .plt

0000000000400440 l    d  .text  0000000000000000              .text

0000000000400638 l    d  .fini  0000000000000000              .fini

0000000000400648 l    d  .rodata        0000000000000000              .rodata

000000000040064c l    d  .eh_frame_hdr  0000000000000000              .eh_frame_hdr

0000000000400678 l    d  .eh_frame      0000000000000000              .eh_frame

0000000000600e28 l    d  .ctors 0000000000000000              .ctors

0000000000600e38 l    d  .dtors 0000000000000000              .dtors

0000000000600e48 l    d  .jcr   0000000000000000              .jcr

0000000000600e50 l    d  .dynamic       0000000000000000              .dynamic

0000000000600fe0 l    d  .got   0000000000000000              .got

0000000000600fe8 l    d  .got.plt       0000000000000000              .got.plt

0000000000601010 l    d  .data  0000000000000000              .data

0000000000601020 l    d  .bss   0000000000000000              .bss

0000000000000000 l    d  .comment       0000000000000000              .comment

0000000000000000 l    d  .debug_aranges 0000000000000000              .debug_aranges

0000000000000000 l    d  .debug_info    0000000000000000              .debug_info

0000000000000000 l    d  .debug_abbrev  0000000000000000              .debug_abbrev

0000000000000000 l    d  .debug_line    0000000000000000              .debug_line

0000000000000000 l    d  .debug_str     0000000000000000              .debug_str

0000000000000000 l    d  .debug_loc     0000000000000000              .debug_loc

000000000040046c l     F .text  0000000000000000              call_gmon_start

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e28 l     O .ctors 0000000000000000              __CTOR_LIST__

0000000000600e38 l     O .dtors 0000000000000000              __DTOR_LIST__

0000000000600e48 l     O .jcr   0000000000000000              __JCR_LIST__

0000000000400490 l     F .text  0000000000000000              __do_global_dtors_aux

0000000000601020 l     O .bss   0000000000000001              completed.6531

0000000000601028 l     O .bss   0000000000000008              dtor_idx.6533

0000000000400500 l     F .text  0000000000000000              frame_dummy

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e30 l     O .ctors 0000000000000000              __CTOR_END__

0000000000400718 l     O .eh_frame      0000000000000000              __FRAME_END__

0000000000600e48 l     O .jcr   0000000000000000              __JCR_END__

0000000000400600 l     F .text  0000000000000000              __do_global_ctors_aux

0000000000000000 l    df *ABS*  0000000000000000              tttt.c

0000000000600e24 l       .ctors 0000000000000000              __init_array_end

0000000000600e50 l     O .dynamic       0000000000000000              _DYNAMIC

0000000000600e24 l       .ctors 0000000000000000              __init_array_start

0000000000600fe8 l     O .got.plt       0000000000000000              _GLOBAL_OFFSET_TABLE_

00000000004005f0 g     F .text  0000000000000002              __libc_csu_fini

0000000000601010  w      .data  0000000000000000              data_start

0000000000601020 g       *ABS*  0000000000000000              _edata

0000000000400638 g     F .fini  0000000000000000              _fini

0000000000000000       F *UND*  0000000000000000              __stack_chk_fail@@GLIBC_2.4

0000000000600e40 g     O .dtors 0000000000000000              .hidden __DTOR_END__

0000000000000000       F *UND*  0000000000000000              __libc_start_main@@GLIBC_2.2.5

0000000000601010 g       .data  0000000000000000              __data_start

0000000000000000  w      *UND*  0000000000000000              __gmon_start__

0000000000601018 g     O .data  0000000000000000              .hidden __dso_handle

0000000000400648 g     O .rodata        0000000000000004              _IO_stdin_used

0000000000400560 g     F .text  0000000000000089              __libc_csu_init

0000000000601030 g       *ABS*  0000000000000000              _end

0000000000400440 g     F .text  0000000000000000              _start

0000000000601020 g       *ABS*  0000000000000000              __bss_start

0000000000400524 g     F .text  0000000000000036              main

0000000000000000  w      *UND*  0000000000000000              _Jv_RegisterClasses

00000000004003f0 g     F .init  0000000000000000              _init 


프로파일링 추가

$ gcc -pg tttt.c

$ objdump -x a.out


a.out:     file format elf64-x86-64

a.out

architecture: i386:x86-64, flags 0x00000112:

EXEC_P, HAS_SYMS, D_PAGED

start address 0x0000000000400570


Program Header:

    PHDR off    0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3

         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x

  INTERP off    0x0000000000000238 vaddr 0x0000000000400238 paddr 0x0000000000400238 align 2**0

         filesz 0x000000000000001c memsz 0x000000000000001c flags r--

    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**21

         filesz 0x00000000000008c4 memsz 0x00000000000008c4 flags r-x

    LOAD off    0x0000000000000e20 vaddr 0x0000000000600e20 paddr 0x0000000000600e20 align 2**21

         filesz 0x0000000000000220 memsz 0x0000000000000238 flags rw-

 DYNAMIC off    0x0000000000000e48 vaddr 0x0000000000600e48 paddr 0x0000000000600e48 align 2**3

         filesz 0x0000000000000190 memsz 0x0000000000000190 flags rw-

    NOTE off    0x0000000000000254 vaddr 0x0000000000400254 paddr 0x0000000000400254 align 2**2

         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--

EH_FRAME off    0x00000000000007dc vaddr 0x00000000004007dc paddr 0x00000000004007dc align 2**2

         filesz 0x0000000000000034 memsz 0x0000000000000034 flags r--

   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3

         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

   RELRO off    0x0000000000000e20 vaddr 0x0000000000600e20 paddr 0x0000000000600e20 align 2**0

         filesz 0x00000000000001e0 memsz 0x00000000000001e0 flags r--


Dynamic Section:

  NEEDED               libc.so.6

  INIT                 0x00000000004004e8

  FINI                 0x00000000004007c8

  GNU_HASH             0x0000000000400298

  STRTAB               0x0000000000400380

  SYMTAB               0x00000000004002c0

  STRSZ                0x000000000000007e

  SYMENT               0x0000000000000018

  DEBUG                0x0000000000000000

  PLTGOT               0x0000000000600fe8

  PLTRELSZ             0x0000000000000090

  PLTREL               0x0000000000000007

  JMPREL               0x0000000000400458

  RELA                 0x0000000000400440

  RELASZ               0x0000000000000018

  RELAENT              0x0000000000000018

  VERNEED              0x0000000000400410

  VERNEEDNUM           0x0000000000000001

  VERSYM               0x00000000004003fe


Version References:

  required from libc.so.6:

    0x09691a75 0x00 03 GLIBC_2.2.5

    0x0d696914 0x00 02 GLIBC_2.4


Sections:

Idx Name          Size      VMA               LMA               File off  Algn

  0 .interp       0000001c  0000000000400238  0000000000400238  00000238  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  1 .note.ABI-tag 00000020  0000000000400254  0000000000400254  00000254  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  2 .note.gnu.build-id 00000024  0000000000400274  0000000000400274  00000274  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  3 .gnu.hash     00000028  0000000000400298  0000000000400298  00000298  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  4 .dynsym       000000c0  00000000004002c0  00000000004002c0  000002c0  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  5 .dynstr       0000007e  0000000000400380  0000000000400380  00000380  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  6 .gnu.version  00000010  00000000004003fe  00000000004003fe  000003fe  2**1

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  7 .gnu.version_r 00000030  0000000000400410  0000000000400410  00000410  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  8 .rela.dyn     00000018  0000000000400440  0000000000400440  00000440  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  9 .rela.plt     00000090  0000000000400458  0000000000400458  00000458  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 10 .init         00000018  00000000004004e8  00000000004004e8  000004e8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 11 .plt          00000070  0000000000400500  0000000000400500  00000500  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 12 .text         00000258  0000000000400570  0000000000400570  00000570  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 13 .fini         0000000e  00000000004007c8  00000000004007c8  000007c8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 14 .rodata       00000004  00000000004007d8  00000000004007d8  000007d8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 15 .eh_frame_hdr 00000034  00000000004007dc  00000000004007dc  000007dc  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 16 .eh_frame     000000b4  0000000000400810  0000000000400810  00000810  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 17 .ctors        00000010  0000000000600e20  0000000000600e20  00000e20  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 18 .dtors        00000010  0000000000600e30  0000000000600e30  00000e30  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 19 .jcr          00000008  0000000000600e40  0000000000600e40  00000e40  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 20 .dynamic      00000190  0000000000600e48  0000000000600e48  00000e48  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 21 .got          00000010  0000000000600fd8  0000000000600fd8  00000fd8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 22 .got.plt      00000048  0000000000600fe8  0000000000600fe8  00000fe8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 23 .data         00000010  0000000000601030  0000000000601030  00001030  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 24 .bss          00000018  0000000000601040  0000000000601040  00001040  2**4

                  ALLOC

 25 .comment      0000002a  0000000000000000  0000000000000000  00001040  2**0

                  CONTENTS, READONLY

SYMBOL TABLE:

0000000000400238 l    d  .interp        0000000000000000              .interp

0000000000400254 l    d  .note.ABI-tag  0000000000000000              .note.ABI-tag

0000000000400274 l    d  .note.gnu.build-id     0000000000000000              .note.gnu.build-id

0000000000400298 l    d  .gnu.hash      0000000000000000              .gnu.hash

00000000004002c0 l    d  .dynsym        0000000000000000              .dynsym

0000000000400380 l    d  .dynstr        0000000000000000              .dynstr

00000000004003fe l    d  .gnu.version   0000000000000000              .gnu.version

0000000000400410 l    d  .gnu.version_r 0000000000000000              .gnu.version_r

0000000000400440 l    d  .rela.dyn      0000000000000000              .rela.dyn

0000000000400458 l    d  .rela.plt      0000000000000000              .rela.plt

00000000004004e8 l    d  .init  0000000000000000              .init

0000000000400500 l    d  .plt   0000000000000000              .plt

0000000000400570 l    d  .text  0000000000000000              .text

00000000004007c8 l    d  .fini  0000000000000000              .fini

00000000004007d8 l    d  .rodata        0000000000000000              .rodata

00000000004007dc l    d  .eh_frame_hdr  0000000000000000              .eh_frame_hdr

0000000000400810 l    d  .eh_frame      0000000000000000              .eh_frame

0000000000600e20 l    d  .ctors 0000000000000000              .ctors

0000000000600e30 l    d  .dtors 0000000000000000              .dtors

0000000000600e40 l    d  .jcr   0000000000000000              .jcr

0000000000600e48 l    d  .dynamic       0000000000000000              .dynamic

0000000000600fd8 l    d  .got   0000000000000000              .got

0000000000600fe8 l    d  .got.plt       0000000000000000              .got.plt

0000000000601030 l    d  .data  0000000000000000              .data

0000000000601040 l    d  .bss   0000000000000000              .bss

0000000000000000 l    d  .comment       0000000000000000              .comment

0000000000601040 l     O .bss   0000000000000004              called.4053

00000000004005e0 l     F .text  0000000000000000              call_gmon_start

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e20 l     O .ctors 0000000000000000              __CTOR_LIST__

0000000000600e30 l     O .dtors 0000000000000000              __DTOR_LIST__

0000000000600e40 l     O .jcr   0000000000000000              __JCR_LIST__

0000000000400600 l     F .text  0000000000000000              __do_global_dtors_aux

0000000000601048 l     O .bss   0000000000000001              completed.6531

0000000000601050 l     O .bss   0000000000000008              dtor_idx.6533

0000000000400670 l     F .text  0000000000000000              frame_dummy

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e28 l     O .ctors 0000000000000000              __CTOR_END__

00000000004008c0 l     O .eh_frame      0000000000000000              __FRAME_END__

0000000000600e40 l     O .jcr   0000000000000000              __JCR_END__

0000000000400790 l     F .text  0000000000000000              __do_global_ctors_aux

0000000000000000 l    df *ABS*  0000000000000000              tttt.c

0000000000600e1c l       .ctors 0000000000000000              __init_array_end

0000000000601038 l     O .data  0000000000000000              __dso_handle

0000000000600e48 l     O .dynamic       0000000000000000              _DYNAMIC

0000000000600e1c l       .ctors 0000000000000000              __init_array_start

0000000000600fe8 l     O .got.plt       0000000000000000              _GLOBAL_OFFSET_TABLE_

0000000000400760 g     F .text  0000000000000002              __libc_csu_fini

0000000000601030  w      .data  0000000000000000              data_start

0000000000400770 g     F .text  000000000000001a              .hidden atexit

0000000000601040 g       *ABS*  0000000000000000              _edata

00000000004007c8 g     F .fini  0000000000000000              _fini

0000000000000000       F *UND*  0000000000000000              __stack_chk_fail@@GLIBC_2.4

0000000000400520       F *UND*  0000000000000000              _mcleanup@@GLIBC_2.2.5

0000000000600e38 g     O .dtors 0000000000000000              .hidden __DTOR_END__

0000000000000000       F *UND*  0000000000000000              __libc_start_main@@GLIBC_2.2.5

0000000000601030 g       .data  0000000000000000              __data_start

0000000000000000       F *UND*  0000000000000000              __monstartup@@GLIBC_2.2.5

00000000004005a0 g     F .text  000000000000003f              __gmon_start__

00000000004007d8 g     O .rodata        0000000000000004              _IO_stdin_used

00000000004006d0 g     F .text  0000000000000089              __libc_csu_init

0000000000601058 g       *ABS*  0000000000000000              _end

0000000000400570 g     F .text  0000000000000000              _start

0000000000601040 g       *ABS*  0000000000000000              __bss_start

0000000000400694 g     F .text  000000000000003b              main

0000000000000000       F *UND*  0000000000000000              mcount@@GLIBC_2.2.5

00000000004007d6 g       *ABS*  0000000000000000              etext

0000000000000000  w      *UND*  0000000000000000              _Jv_RegisterClasses

0000000000000000       F *UND*  0000000000000000              __cxa_atexit@@GLIBC_2.2.5

00000000004004e8 g     F .init  0000000000000000              _init 


디버깅, 프로파일링 추가

$ gcc -g -pg tttt.c

$ objdump -x a.out


a.out:     file format elf64-x86-64

a.out

architecture: i386:x86-64, flags 0x00000112:

EXEC_P, HAS_SYMS, D_PAGED

start address 0x0000000000400570


Program Header:

    PHDR off    0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3

         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x

  INTERP off    0x0000000000000238 vaddr 0x0000000000400238 paddr 0x0000000000400238 align 2**0

         filesz 0x000000000000001c memsz 0x000000000000001c flags r--

    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**21

         filesz 0x00000000000008c4 memsz 0x00000000000008c4 flags r-x

    LOAD off    0x0000000000000e20 vaddr 0x0000000000600e20 paddr 0x0000000000600e20 align 2**21

         filesz 0x0000000000000220 memsz 0x0000000000000238 flags rw-

 DYNAMIC off    0x0000000000000e48 vaddr 0x0000000000600e48 paddr 0x0000000000600e48 align 2**3

         filesz 0x0000000000000190 memsz 0x0000000000000190 flags rw-

    NOTE off    0x0000000000000254 vaddr 0x0000000000400254 paddr 0x0000000000400254 align 2**2

         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--

EH_FRAME off    0x00000000000007dc vaddr 0x00000000004007dc paddr 0x00000000004007dc align 2**2

         filesz 0x0000000000000034 memsz 0x0000000000000034 flags r--

   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3

         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

   RELRO off    0x0000000000000e20 vaddr 0x0000000000600e20 paddr 0x0000000000600e20 align 2**0

         filesz 0x00000000000001e0 memsz 0x00000000000001e0 flags r--


Dynamic Section:

  NEEDED               libc.so.6

  INIT                 0x00000000004004e8

  FINI                 0x00000000004007c8

  GNU_HASH             0x0000000000400298

  STRTAB               0x0000000000400380

  SYMTAB               0x00000000004002c0

  STRSZ                0x000000000000007e

  SYMENT               0x0000000000000018

  DEBUG                0x0000000000000000

  PLTGOT               0x0000000000600fe8

  PLTRELSZ             0x0000000000000090

  PLTREL               0x0000000000000007

  JMPREL               0x0000000000400458

  RELA                 0x0000000000400440

  RELASZ               0x0000000000000018

  RELAENT              0x0000000000000018

  VERNEED              0x0000000000400410

  VERNEEDNUM           0x0000000000000001

  VERSYM               0x00000000004003fe


Version References:

  required from libc.so.6:

    0x09691a75 0x00 03 GLIBC_2.2.5

    0x0d696914 0x00 02 GLIBC_2.4


Sections:

Idx Name          Size      VMA               LMA               File off  Algn

  0 .interp       0000001c  0000000000400238  0000000000400238  00000238  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  1 .note.ABI-tag 00000020  0000000000400254  0000000000400254  00000254  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  2 .note.gnu.build-id 00000024  0000000000400274  0000000000400274  00000274  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  3 .gnu.hash     00000028  0000000000400298  0000000000400298  00000298  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  4 .dynsym       000000c0  00000000004002c0  00000000004002c0  000002c0  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  5 .dynstr       0000007e  0000000000400380  0000000000400380  00000380  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  6 .gnu.version  00000010  00000000004003fe  00000000004003fe  000003fe  2**1

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  7 .gnu.version_r 00000030  0000000000400410  0000000000400410  00000410  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  8 .rela.dyn     00000018  0000000000400440  0000000000400440  00000440  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  9 .rela.plt     00000090  0000000000400458  0000000000400458  00000458  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 10 .init         00000018  00000000004004e8  00000000004004e8  000004e8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 11 .plt          00000070  0000000000400500  0000000000400500  00000500  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 12 .text         00000258  0000000000400570  0000000000400570  00000570  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 13 .fini         0000000e  00000000004007c8  00000000004007c8  000007c8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 14 .rodata       00000004  00000000004007d8  00000000004007d8  000007d8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 15 .eh_frame_hdr 00000034  00000000004007dc  00000000004007dc  000007dc  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 16 .eh_frame     000000b4  0000000000400810  0000000000400810  00000810  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 17 .ctors        00000010  0000000000600e20  0000000000600e20  00000e20  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 18 .dtors        00000010  0000000000600e30  0000000000600e30  00000e30  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 19 .jcr          00000008  0000000000600e40  0000000000600e40  00000e40  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 20 .dynamic      00000190  0000000000600e48  0000000000600e48  00000e48  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 21 .got          00000010  0000000000600fd8  0000000000600fd8  00000fd8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 22 .got.plt      00000048  0000000000600fe8  0000000000600fe8  00000fe8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 23 .data         00000010  0000000000601030  0000000000601030  00001030  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 24 .bss          00000018  0000000000601040  0000000000601040  00001040  2**4

                  ALLOC

 25 .comment      0000002a  0000000000000000  0000000000000000  00001040  2**0

                  CONTENTS, READONLY

 26 .debug_aranges 00000030  0000000000000000  0000000000000000  0000106a  2**0

                  CONTENTS, READONLY, DEBUGGING

 27 .debug_info   0000009d  0000000000000000  0000000000000000  0000109a  2**0

                  CONTENTS, READONLY, DEBUGGING

 28 .debug_abbrev 0000006f  0000000000000000  0000000000000000  00001137  2**0

                  CONTENTS, READONLY, DEBUGGING

 29 .debug_line   0000003c  0000000000000000  0000000000000000  000011a6  2**0

                  CONTENTS, READONLY, DEBUGGING

 30 .debug_str    0000004c  0000000000000000  0000000000000000  000011e2  2**0

                  CONTENTS, READONLY, DEBUGGING

 31 .debug_loc    00000060  0000000000000000  0000000000000000  0000122e  2**0

                  CONTENTS, READONLY, DEBUGGING

SYMBOL TABLE:

0000000000400238 l    d  .interp        0000000000000000              .interp

0000000000400254 l    d  .note.ABI-tag  0000000000000000              .note.ABI-tag

0000000000400274 l    d  .note.gnu.build-id     0000000000000000              .note.gnu.build-id

0000000000400298 l    d  .gnu.hash      0000000000000000              .gnu.hash

00000000004002c0 l    d  .dynsym        0000000000000000              .dynsym

0000000000400380 l    d  .dynstr        0000000000000000              .dynstr

00000000004003fe l    d  .gnu.version   0000000000000000              .gnu.version

0000000000400410 l    d  .gnu.version_r 0000000000000000              .gnu.version_r

0000000000400440 l    d  .rela.dyn      0000000000000000              .rela.dyn

0000000000400458 l    d  .rela.plt      0000000000000000              .rela.plt

00000000004004e8 l    d  .init  0000000000000000              .init

0000000000400500 l    d  .plt   0000000000000000              .plt

0000000000400570 l    d  .text  0000000000000000              .text

00000000004007c8 l    d  .fini  0000000000000000              .fini

00000000004007d8 l    d  .rodata        0000000000000000              .rodata

00000000004007dc l    d  .eh_frame_hdr  0000000000000000              .eh_frame_hdr

0000000000400810 l    d  .eh_frame      0000000000000000              .eh_frame

0000000000600e20 l    d  .ctors 0000000000000000              .ctors

0000000000600e30 l    d  .dtors 0000000000000000              .dtors

0000000000600e40 l    d  .jcr   0000000000000000              .jcr

0000000000600e48 l    d  .dynamic       0000000000000000              .dynamic

0000000000600fd8 l    d  .got   0000000000000000              .got

0000000000600fe8 l    d  .got.plt       0000000000000000              .got.plt

0000000000601030 l    d  .data  0000000000000000              .data

0000000000601040 l    d  .bss   0000000000000000              .bss

0000000000000000 l    d  .comment       0000000000000000              .comment

0000000000000000 l    d  .debug_aranges 0000000000000000              .debug_aranges

0000000000000000 l    d  .debug_info    0000000000000000              .debug_info

0000000000000000 l    d  .debug_abbrev  0000000000000000              .debug_abbrev

0000000000000000 l    d  .debug_line    0000000000000000              .debug_line

0000000000000000 l    d  .debug_str     0000000000000000              .debug_str

0000000000000000 l    d  .debug_loc     0000000000000000              .debug_loc

0000000000601040 l     O .bss   0000000000000004              called.4053

00000000004005e0 l     F .text  0000000000000000              call_gmon_start

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e20 l     O .ctors 0000000000000000              __CTOR_LIST__

0000000000600e30 l     O .dtors 0000000000000000              __DTOR_LIST__

0000000000600e40 l     O .jcr   0000000000000000              __JCR_LIST__

0000000000400600 l     F .text  0000000000000000              __do_global_dtors_aux

0000000000601048 l     O .bss   0000000000000001              completed.6531

0000000000601050 l     O .bss   0000000000000008              dtor_idx.6533

0000000000400670 l     F .text  0000000000000000              frame_dummy

0000000000000000 l    df *ABS*  0000000000000000              crtstuff.c

0000000000600e28 l     O .ctors 0000000000000000              __CTOR_END__

00000000004008c0 l     O .eh_frame      0000000000000000              __FRAME_END__

0000000000600e40 l     O .jcr   0000000000000000              __JCR_END__

0000000000400790 l     F .text  0000000000000000              __do_global_ctors_aux

0000000000000000 l    df *ABS*  0000000000000000              tttt.c

0000000000600e1c l       .ctors 0000000000000000              __init_array_end

0000000000601038 l     O .data  0000000000000000              __dso_handle

0000000000600e48 l     O .dynamic       0000000000000000              _DYNAMIC

0000000000600e1c l       .ctors 0000000000000000              __init_array_start

0000000000600fe8 l     O .got.plt       0000000000000000              _GLOBAL_OFFSET_TABLE_

0000000000400760 g     F .text  0000000000000002              __libc_csu_fini

0000000000601030  w      .data  0000000000000000              data_start

0000000000400770 g     F .text  000000000000001a              .hidden atexit

0000000000601040 g       *ABS*  0000000000000000              _edata

00000000004007c8 g     F .fini  0000000000000000              _fini

0000000000000000       F *UND*  0000000000000000              __stack_chk_fail@@GLIBC_2.4

0000000000400520       F *UND*  0000000000000000              _mcleanup@@GLIBC_2.2.5

0000000000600e38 g     O .dtors 0000000000000000              .hidden __DTOR_END__

0000000000000000       F *UND*  0000000000000000              __libc_start_main@@GLIBC_2.2.5

0000000000601030 g       .data  0000000000000000              __data_start

0000000000000000       F *UND*  0000000000000000              __monstartup@@GLIBC_2.2.5

00000000004005a0 g     F .text  000000000000003f              __gmon_start__

00000000004007d8 g     O .rodata        0000000000000004              _IO_stdin_used

00000000004006d0 g     F .text  0000000000000089              __libc_csu_init

0000000000601058 g       *ABS*  0000000000000000              _end

0000000000400570 g     F .text  0000000000000000              _start

0000000000601040 g       *ABS*  0000000000000000              __bss_start

0000000000400694 g     F .text  000000000000003b              main

0000000000000000       F *UND*  0000000000000000              mcount@@GLIBC_2.2.5

00000000004007d6 g       *ABS*  0000000000000000              etext

0000000000000000  w      *UND*  0000000000000000              _Jv_RegisterClasses

0000000000000000       F *UND*  0000000000000000              __cxa_atexit@@GLIBC_2.2.5

00000000004004e8 g     F .init  0000000000000000              _init 


스트라이핑

$ gcc -g -pg tttt.c

$ strip a.out

$ objdump -x a.out


a.out:     file format elf64-x86-64

a.out

architecture: i386:x86-64, flags 0x00000112:

EXEC_P, HAS_SYMS, D_PAGED

start address 0x0000000000400570


Program Header:

    PHDR off    0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3

         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x

  INTERP off    0x0000000000000238 vaddr 0x0000000000400238 paddr 0x0000000000400238 align 2**0

         filesz 0x000000000000001c memsz 0x000000000000001c flags r--

    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**21

         filesz 0x00000000000008c4 memsz 0x00000000000008c4 flags r-x

    LOAD off    0x0000000000000e20 vaddr 0x0000000000600e20 paddr 0x0000000000600e20 align 2**21

         filesz 0x0000000000000220 memsz 0x0000000000000238 flags rw-

 DYNAMIC off    0x0000000000000e48 vaddr 0x0000000000600e48 paddr 0x0000000000600e48 align 2**3

         filesz 0x0000000000000190 memsz 0x0000000000000190 flags rw-

    NOTE off    0x0000000000000254 vaddr 0x0000000000400254 paddr 0x0000000000400254 align 2**2

         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--

EH_FRAME off    0x00000000000007dc vaddr 0x00000000004007dc paddr 0x00000000004007dc align 2**2

         filesz 0x0000000000000034 memsz 0x0000000000000034 flags r--

   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3

         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

   RELRO off    0x0000000000000e20 vaddr 0x0000000000600e20 paddr 0x0000000000600e20 align 2**0

         filesz 0x00000000000001e0 memsz 0x00000000000001e0 flags r--


Dynamic Section:

  NEEDED               libc.so.6

  INIT                 0x00000000004004e8

  FINI                 0x00000000004007c8

  GNU_HASH             0x0000000000400298

  STRTAB               0x0000000000400380

  SYMTAB               0x00000000004002c0

  STRSZ                0x000000000000007e

  SYMENT               0x0000000000000018

  DEBUG                0x0000000000000000

  PLTGOT               0x0000000000600fe8

  PLTRELSZ             0x0000000000000090

  PLTREL               0x0000000000000007

  JMPREL               0x0000000000400458

  RELA                 0x0000000000400440

  RELASZ               0x0000000000000018

  RELAENT              0x0000000000000018

  VERNEED              0x0000000000400410

  VERNEEDNUM           0x0000000000000001

  VERSYM               0x00000000004003fe


Version References:

  required from libc.so.6:

    0x09691a75 0x00 03 GLIBC_2.2.5

    0x0d696914 0x00 02 GLIBC_2.4


Sections:

Idx Name          Size      VMA               LMA               File off  Algn

  0 .interp       0000001c  0000000000400238  0000000000400238  00000238  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  1 .note.ABI-tag 00000020  0000000000400254  0000000000400254  00000254  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  2 .note.gnu.build-id 00000024  0000000000400274  0000000000400274  00000274  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  3 .gnu.hash     00000028  0000000000400298  0000000000400298  00000298  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  4 .dynsym       000000c0  00000000004002c0  00000000004002c0  000002c0  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  5 .dynstr       0000007e  0000000000400380  0000000000400380  00000380  2**0

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  6 .gnu.version  00000010  00000000004003fe  00000000004003fe  000003fe  2**1

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  7 .gnu.version_r 00000030  0000000000400410  0000000000400410  00000410  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  8 .rela.dyn     00000018  0000000000400440  0000000000400440  00000440  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

  9 .rela.plt     00000090  0000000000400458  0000000000400458  00000458  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 10 .init         00000018  00000000004004e8  00000000004004e8  000004e8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 11 .plt          00000070  0000000000400500  0000000000400500  00000500  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 12 .text         00000258  0000000000400570  0000000000400570  00000570  2**4

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 13 .fini         0000000e  00000000004007c8  00000000004007c8  000007c8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, CODE

 14 .rodata       00000004  00000000004007d8  00000000004007d8  000007d8  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 15 .eh_frame_hdr 00000034  00000000004007dc  00000000004007dc  000007dc  2**2

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 16 .eh_frame     000000b4  0000000000400810  0000000000400810  00000810  2**3

                  CONTENTS, ALLOC, LOAD, READONLY, DATA

 17 .ctors        00000010  0000000000600e20  0000000000600e20  00000e20  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 18 .dtors        00000010  0000000000600e30  0000000000600e30  00000e30  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 19 .jcr          00000008  0000000000600e40  0000000000600e40  00000e40  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 20 .dynamic      00000190  0000000000600e48  0000000000600e48  00000e48  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 21 .got          00000010  0000000000600fd8  0000000000600fd8  00000fd8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 22 .got.plt      00000048  0000000000600fe8  0000000000600fe8  00000fe8  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 23 .data         00000010  0000000000601030  0000000000601030  00001030  2**3

                  CONTENTS, ALLOC, LOAD, DATA

 24 .bss          00000018  0000000000601040  0000000000601040  00001040  2**4

                  ALLOC

 25 .comment      0000002a  0000000000000000  0000000000000000  00001040  2**0

                  CONTENTS, READONLY

SYMBOL TABLE:

no symbols 


프로파일링 관련 gmon_start와 -pg 옵션 없을때 주소값의 차이

You can see here, that the symbol value of __gmon_start__ is set to 00000000.

[링크 : http://stackoverflow.com/questions/12697081/what-is-gmon-start-symbol]

'Linux' 카테고리의 다른 글

AMD avx 리눅스 식별자  (0) 2016.03.08
리눅스용 비디오 편집 프로그램  (0) 2016.03.02
iotop  (0) 2016.01.19
리눅스에서 메모리 뱅크 확인하기  (0) 2015.10.30
IIO - Industrial I/O  (2) 2015.09.03
Posted by 구차니
embeded/Cortex-M3 Ti2016. 2. 18. 14:57

master 인터럽트를 disable 하면 어떻게 작동할까?

우연히 그 타이밍에 발생할 인터럽트가 있었다면.. pending 될까? 아니면 그냥 잊혀지는걸까?



SW-DRL-UG-6288.pdf


13.2.2.3 IntMasterDisable

Disables the processor interrupt.

Prototype:

tBoolean

IntMasterDisable(void)

Description:

Prevents the processor from receiving interrupts. This does not affect the set of interrupts

enabled in the interrupt controller; it just gates the single interrupt from the controller to the

processor.

Note:

Previously, this function had no return value. As such, it was possible to include interrupt.h

and call this function without having included hw_types.h. Now that the return is a

tBoolean, a compiler error will occur in this case. The solution is to include hw_types.h

before including interrupt.h.

Returns:

Returns true if interrupts were already disabled when the function was called or false if they

were initially enabled.


13.2.2.4 IntMasterEnable

Enables the processor interrupt.

Prototype:

tBoolean

IntMasterEnable(void)

Description:

Allows the processor to respond to interrupts. This does not affect the set of interrupts enabled

in the interrupt controller; it just gates the single interrupt from the controller to the processor.

Note:

Previously, this function had no return value. As such, it was possible to include interrupt.h

and call this function without having included hw_types.h. Now that the return is a

tBoolean, a compiler error will occur in this case. The solution is to include hw_types.h

before including interrupt.h.

Returns:

Returns true if interrupts were disabled when the function was called or false if they were

initially enabled.


13.2.2.5 IntPendClear

Unpends an interrupt.

Prototype:

void

IntPendClear(unsigned long ulInterrupt)

Parameters:

ulInterrupt specifies the interrupt to be unpended.

Description:

The specified interrupt is unpended in the interrupt controller. This will cause any previously

generated interrupts that have not been handled yet (due to higher priority interrupts or the

interrupt no having been enabled yet) to be discarded.

Returns:

None.


13.2.2.6 IntPendSet

Pends an interrupt.

Prototype:

void

IntPendSet(unsigned long ulInterrupt)

Parameters:

ulInterrupt specifies the interrupt to be pended.

Description:

The specified interrupt is pended in the interrupt controller. This will cause the interrupt con

troller to execute the corresponding interrupt handler at the next available time, based on the

current interrupt state priorities. For example, if called by a higher priority interrupt handler,

the specified interrupt handler will not be called until after the current interrupt handler has

completed execution. The interrupt must have been enabled for it to be called.

Returns:

None.



interrupt.c


tBoolean

IntMasterEnable(void)

{

    //

    // Enable processor interrupts.

    //

    return(CPUcpsie());

}


tBoolean

IntMasterDisable(void)

{

    //

    // Disable processor interrupts.

    //

    return(CPUcpsid());

}


void

IntEnable(unsigned long ulInterrupt)

{

    //

    // Check the arguments.

    //

    ASSERT(ulInterrupt < NUM_INTERRUPTS);


    //

    // Determine the interrupt to enable.

    //

    if(ulInterrupt == FAULT_MPU)

    {

        //

        // Enable the MemManage interrupt.

        //

        HWREG(NVIC_SYS_HND_CTRL) |= NVIC_SYS_HND_CTRL_MEM;

    }

    else if(ulInterrupt == FAULT_BUS)

    {

        //

        // Enable the bus fault interrupt.

        //

        HWREG(NVIC_SYS_HND_CTRL) |= NVIC_SYS_HND_CTRL_BUS;

    }

    else if(ulInterrupt == FAULT_USAGE)

    {

        //

        // Enable the usage fault interrupt.

        //

        HWREG(NVIC_SYS_HND_CTRL) |= NVIC_SYS_HND_CTRL_USAGE;

    }

    else if(ulInterrupt == FAULT_SYSTICK)

    {

        //

        // Enable the System Tick interrupt.

        //

        HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_INTEN;

    }

    else if((ulInterrupt >= 16) && (ulInterrupt <= 47))

    {

        //

        // Enable the general interrupt.

        //

        HWREG(NVIC_EN0) = 1 << (ulInterrupt - 16);

    }

    else if(ulInterrupt >= 48)

    {

        //

        // Enable the general interrupt.

        //

        HWREG(NVIC_EN1) = 1 << (ulInterrupt - 48);

    }

}


void

IntDisable(unsigned long ulInterrupt)

{

    //

    // Check the arguments.

    //

    ASSERT(ulInterrupt < NUM_INTERRUPTS);


    //

    // Determine the interrupt to disable.

    //

    if(ulInterrupt == FAULT_MPU)

    {

        //

        // Disable the MemManage interrupt.

        //

        HWREG(NVIC_SYS_HND_CTRL) &= ~(NVIC_SYS_HND_CTRL_MEM);

    }

    else if(ulInterrupt == FAULT_BUS)

    {

        //

        // Disable the bus fault interrupt.

        //

        HWREG(NVIC_SYS_HND_CTRL) &= ~(NVIC_SYS_HND_CTRL_BUS);

    }

    else if(ulInterrupt == FAULT_USAGE)

    {

        //

        // Disable the usage fault interrupt.

        //

        HWREG(NVIC_SYS_HND_CTRL) &= ~(NVIC_SYS_HND_CTRL_USAGE);

    }

    else if(ulInterrupt == FAULT_SYSTICK)

    {

        //

        // Disable the System Tick interrupt.

        //

        HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_INTEN);

    }

    else if((ulInterrupt >= 16) && (ulInterrupt <= 47))

    {

        //

        // Disable the general interrupt.

        //

        HWREG(NVIC_DIS0) = 1 << (ulInterrupt - 16);

    }

    else if(ulInterrupt >= 48)

    {

        //

        // Disable the general interrupt.

        //

        HWREG(NVIC_DIS1) = 1 << (ulInterrupt - 48);

    }

}


cpsid / cpsie 어셈블리 인스트럭션을 통해서 마스터 인터럽트를 제어한다.



SetEnable() 시에는 EN0를


SetDisable() 시에는 DIS0를 사용한다.


용도를 찾지 못한.. 이 펜딩.. 머지?



[링크 : http://www.ti.com/lit/ds/spms037g/spms037g.pdf]



음.. disabled interrupt를 펜딩으로 상태를 설정한다?

즉, enable/disable/pending 세가지 상태 중 하나만 가능한건가?


Writing 1 to the ISPR bit corresponding to:

an interrupt that is pending has no effect

a disabled interrupt sets the state of that interrupt to pending.

[링크 :http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/Cihjjifh.html]

'embeded > Cortex-M3 Ti' 카테고리의 다른 글

ekc-lm3s811 를 ICDI로 사용하기  (0) 2016.08.27
cortex-m3 hibernate module...  (0) 2016.04.14
uart tx interrupt  (0) 2015.12.18
coflash 구조 및 에러 메시지..  (0) 2015.12.11
ADCHardwareOversampleConfigure()  (0) 2015.11.17
Posted by 구차니

겁내면서 해봤는데 막상 해보니 별거 없...네?


일단 꼬부기로 시도.

귀찮(?)으니 위에 기본값으로 도전

현재는 머지 되어야 할 head에서 merge를 누름 (branch에서 수정한 내용을 head로 병합)


일단 from 이니까.. branch의 경로를 입력해주고 log를 보고 합칠 범위를 고르면 된다.

한번 밖에 수정안해서.. 그냥 마지막 녀석 하나만 병합


귀찮으니 기본값...


겁나니까 Test merge도 해보고


문제 없으니 Merge를 과감하게 클릭!


그러고 나서 확인해보니..

working copy가 바뀌었네?


merge를 commit 하기 전인데


commit 하니 그냥 하나 추가..

닫히는(?) 선으로 연결될줄 알았더니 시무룩..


음.. 잘못한건 아니겠지? ㅠㅠ

auto merge라는 개념으로는 머.. 서버에 바로 적용되거나 하는건 아닐려나..

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn 콘솔 에디터(주석)  (0) 2016.06.21
svn relocate / ubuntu  (0) 2016.06.21
tortoiseSVN merge 페이지 번역  (0) 2015.12.02
svnadmin dump로 덤프/합치기  (0) 2015.11.26
svn merge  (0) 2015.08.19
Posted by 구차니

망할 애플 -_-!!

암튼. MFI 인증 받은 케이블 사면 되는거군!


[링크 : https://developer.apple.com/kr/programs/mfi/]


지인의 조언으로 크레앙이 쓸만하다고.. 8천원대 라이트닝

[링크 : http://www.brainbox.co.kr/review/6452/]

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

야근야근 열매  (0) 2016.03.01
힘들다 지친다..  (0) 2016.02.27
사진 인화 준비..  (0) 2016.02.11
소득공제 제공동의  (0) 2016.02.02
롯데마트 할인 신용카드 흐음...  (0) 2016.01.07
Posted by 구차니
개소리 왈왈/컴퓨터2016. 2. 17. 09:25

아니 왜 일반적으로 포트 기준으로 송/수신을 표기하는게 정상인데

얘네는 WAN 기준으로 적은거야?


LAN2의 미친듯한 송신과

WAN의 미친듯한 수신



WAN 을 통해 받아서

WAN에서 LAN2로 송신... -_-

Posted by 구차니
Programming/vulkan2016. 2. 17. 08:32

이메일로 온 먼가 새로운 정보?


What is Vulkan?

Vulkan is a low level API that gives direct access of the GPU to developers who want the ultimate in control. With a simpler, thinner driver, Vulkan uses less latency and overhead than traditional OpenGL or Direct3D. Vulkan has efficient multi-threading capabilities with multi-core CPUs that keep the graphics pipeline loaded, enabling a new level of performance on existing hardware.


Vulkan is the first new generation, low-level API that is cross platform. This allows developers to create applications for a variety of PC and mobile devices and operating systems. Like OpenGL, Vulkan is an open, royalty-free standard for any platform to adopt. For developers who prefer to remain on OpenGL, NVIDIA will continue to lead OpenGL innovations.


[링크 : https://developer.nvidia.com/vulkan-graphics-api-here]

'Programming > vulkan' 카테고리의 다른 글

vulkan on macos  (0) 2022.04.27
vulkan tutorial  (0) 2022.04.27
vulkan 문서  (0) 2020.04.06
Posted by 구차니
Linux/Ubuntu2016. 2. 16. 10:18

서버 구동시 메시지를 보니.. TLS 어쩌구.. 보안 타입...

$ /usr/lib/vino/vino-server --sm-disable start

16/02/2016 10시 12분 29초 Autoprobing TCP port in (all) network interface

16/02/2016 10시 12분 29초 Listening IPv6://[::]:5900

16/02/2016 10시 12분 29초 Listening IPv4://0.0.0.0:5900

16/02/2016 10시 12분 29초 Autoprobing selected port 5900

16/02/2016 10시 12분 29초 Advertising security type: 'TLS' (18)

16/02/2016 10시 12분 29초 Re-binding socket to listen for VNC connections on TCP port 5900 in (all) interface

16/02/2016 10시 12분 29초 Listening IPv6://[::]:5900

16/02/2016 10시 12분 29초 Listening IPv4://0.0.0.0:5900

16/02/2016 10시 12분 29초 Clearing securityTypes

16/02/2016 10시 12분 29초 Advertising security type: 'TLS' (18)

16/02/2016 10시 12분 29초 Clearing securityTypes

16/02/2016 10시 12분 29초 Advertising security type: 'TLS' (18)

16/02/2016 10시 12분 29초 Advertising authentication type: 'No Authentication' (1)

16/02/2016 10시 12분 29초 Re-binding socket to listen for VNC connections on TCP port 5900 in (all) interface

16/02/2016 10시 12분 29초 Listening IPv6://[::]:5900

16/02/2016 10시 12분 29초 Listening IPv4://0.0.0.0:5900

16/02/2016 10시 12분 29초 Listening for VNC connections on TCP port 5900 in (all) network interface

16/02/2016 10시 12분 29초 Listening IPv6://[::]:5900

16/02/2016 10시 12분 29초 Listening IPv4://0.0.0.0:5900

16/02/2016 10시 12분 29초 Clearing securityTypes

16/02/2016 10시 12분 29초 Clearing authTypes

16/02/2016 10시 12분 29초 Advertising security type: 'TLS' (18)

16/02/2016 10시 12분 29초 Advertising authentication type: 'No Authentication' (1)

16/02/2016 10시 12분 29초 Advertising security type: 'No Authentication' (1)


$ sudo apt-get install xtightvncviewer

패키지 목록을 읽는 중입니다... 완료

의존성 트리를 만드는 중입니다

상태 정보를 읽는 중입니다... 완료

제안하는 패키지:

  tightvncserver

다음 새 패키지를 설치할 것입니다:

  xtightvncviewer

0개 업그레이드, 1개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.

54.7 k바이트 아카이브를 받아야 합니다.

이 작업 후 186 k바이트의 디스크 공간을 더 사용하게 됩니다.

받기:1 http://kr.archive.ubuntu.com/ubuntu/ wily/universe xtightvncviewer amd64 1.3.10-0ubuntu2 [54.7 kB]

내려받기 54.7 k바이트, 소요시간 0초 (324 k바이트/초)

Selecting previously unselected package xtightvncviewer.

(데이터베이스 읽는중 ...현재 227107개의 파일과 디렉터리가 설치되어 있습니다.)

Preparing to unpack .../xtightvncviewer_1.3.10-0ubuntu2_amd64.deb ...

Unpacking xtightvncviewer (1.3.10-0ubuntu2) ...

Processing triggers for man-db (2.7.4-1) ...

Processing triggers for menu (2.1.47ubuntu1) ...

xtightvncviewer (1.3.10-0ubuntu2) 설정하는 중입니다 ...

Processing triggers for menu (2.1.47ubuntu1) ...


$ xtightvncviewer

Connected to RFB server, using protocol version 3.7

No authentication needed

Desktop name "minimonk@devmonk"

VNC server default format:

  32 bits per pixel.

  Least significant byte first in each pixel.

  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0

Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct

Using default colormap which is TrueColor.  Pixel format:

  32 bits per pixel.

  Least significant byte first in each pixel.

  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0

Same machine: preferring raw encoding


일단은. 짜증나서 뷰어 변경하니 되긴 함.


$ gsettings set org.gnome.Vino require-encryption false

보안 강화로 인해 14.10 이후 부터는 tls를 강제로 켜놓는 바람에
클라이언트 들이 지원을 못하는걸려나?
dconf-editor로 encryption을 꺼도 꺼지지 않는다 ㅠㅠ

+
sudo dcont-editor
로 encryption을 꺼서 되는건가?
리부팅 해도 계속 되네 -ㅁ-???


'Linux > Ubuntu' 카테고리의 다른 글

응컁컁 ubuntu 16.10 LTS!  (0) 2016.04.24
notepadqq 흐음...  (0) 2016.03.23
ubuntu selinux... disabled?!  (0) 2016.02.15
ubuntu 15.10 가벼워졌네?  (0) 2016.02.12
우분투 multiseat 설정  (0) 2016.02.04
Posted by 구차니
프로그램 사용/xrdp2016. 2. 16. 09:49

현재 사용중인 설정파일

희한하게.. xrdp1와 xrdp2를 순서 바꾸면 안된다.. 머지 -ㅁ-???

globals의 내용이라던가 이런거 넣어줘도 안되고

port=3350 해줘도 안되고.. 미스테리네


/etc/xrdp$ cat xrdp.ini

[globals]

bitmap_cache=yes

bitmap_compression=yes

port=3389

crypt_level=low

channel_code=1

max_bpp=24

#black=000000

#grey=d6d3ce

#dark_grey=808080

#blue=08246b

#dark_blue=08246b

#white=ffffff

#red=ff0000

#green=00ff00

#background=626c72


[xrdp1]

name=sesman-Xvnc

lib=libvnc.so

username=ask

password=ask

ip=127.0.0.1

port=-1


[xrdp2]

name=Vino-Session

lib=libvnc.so

username=-1

password=ask

ip=127.0.0.1

port=5900 


---

/etc/xrdp$ cat xrdp.ini

[globals]

bitmap_cache=yes

bitmap_compression=yes

port=3389

crypt_level=low

channel_code=1

max_bpp=24

#black=000000

#grey=d6d3ce

#dark_grey=808080

#blue=08246b

#dark_blue=08246b

#white=ffffff

#red=ff0000

#green=00ff00

#background=626c72


[xrdp1]

name=sesman-Xvnc

lib=libvnc.so

username=ask

password=ask

ip=127.0.0.1

port=-1


[xrdp2]

name=console

lib=libvnc.so

ip=127.0.0.1

port=5900

username=na

password=ask


[xrdp3]

name=vnc-any

lib=libvnc.so

ip=ask

port=ask5900

username=na

password=ask


[xrdp4]

name=sesman-any

lib=libvnc.so

ip=ask

port=-1

username=ask

password=ask


[xrdp5]

name=rdp-any

lib=librdp.so

ip=ask

port=ask3389


[xrdp6]

name=freerdp-any

lib=libxrdpfreerdp1.so

ip=ask

port=ask3389

username=ask

password=ask


[xrdp7]

name=sesman-X11rdp

lib=libxup.so

username=ask

password=ask

ip=127.0.0.1

port=-1

xserverbpp=24 


[xrdp8]

name=Vino-Session

lib=libvnc.so

username=ask

password=ask

ip=127.0.0.1

port=5900


단, vino-session은
dconf-editor에서 enryption을 꺼줘야 함


'프로그램 사용 > xrdp' 카테고리의 다른 글

xrdp with pulseaudio  (0) 2016.02.24
xrdp의 장점 (vino/vnc 대비)  (0) 2016.02.23
xrdp 구조?  (0) 2016.02.16
xrdp 3389 / lxde  (0) 2016.02.15
xrdp.. 사용가능한 세션 종류  (0) 2016.02.14
Posted by 구차니
프로그램 사용/xrdp2016. 2. 16. 09:43

찾다보니 별게 다 보이네...

아무튼 rdp는 vnc와 달리 윈도우 매니저와 연동되서

변화하는 내용에 좀더 스마트 하게전송하는 녀석이라..

windwow maanger + moudle manager를 통해 작동하지만..

저넘의 libvnc가 자꾸 눈에 걸리네...





[링크 : http://www.xrdp.org/index.php?option=...xrdp-architecure-overview...&Itemid=7]

'프로그램 사용 > xrdp' 카테고리의 다른 글

xrdp의 장점 (vino/vnc 대비)  (0) 2016.02.23
xrdp.ini  (0) 2016.02.16
xrdp 3389 / lxde  (0) 2016.02.15
xrdp.. 사용가능한 세션 종류  (0) 2016.02.14
xrdp on ubuntu .... 실패  (0) 2016.02.13
Posted by 구차니
Microsoft/Windows2016. 2. 16. 00:08

구형 노트북에서 아이온 하는 녀석이 있는데

이거 설정해주니 30프레임 뜨던게 40 프레임 뜬다고 빵긋~ 하는데

원리가 궁금하네...


[링크 : http://googlinfo.com/782]

[링크 : http://www.inven.co.kr/board/powerbbs.php?come_idx=2641&l=4022&vtype=pc]


+ 2016.02.17

아키에이지, 아이온 전부 크라이엔진...



c:\windows\system.ini

; for 16-bit app support

[386Enh]

woafont=dosapp.fon

EGA80WOA.FON=EGA80WOA.FON

EGA40WOA.FON=EGA40WOA.FON

CGA80WOA.FON=CGA80WOA.FON

CGA40WOA.FON=CGA40WOA.FON


[drivers]

wave=mmdrv.dll

timer=timer.drv


[mci] 

과거글에 네트워크 성능 향상을 위해 irq에 메모리를 할당해준다는데.
October 27, 2004 7:57 AM PDT

[링크 : http://www.cnet.com/.../here-s-that-page-about-assigning-memory-to-irqs-42803/]



어떤 글에서는 말도 안되는 소리라고 하는데 흐음.. 머지 -ㅁ-?

The claim is that the tweak (IRQn=4096) improves network performance by allocating 4 megabytes of memory as a buffer for the IRQ (n) used by your network adapter. However:


  • The setting has no effect on actual memory allocation.
  • The setting does not actually affect network performance in carefully controlled tests. (Anecdotal reports are mixed, and unreliable due to Internet and system variabilities, particularly the effects of caching.)
  • There is no apparent evidence that there even is any such setting in Microsoft documentation.

Windows does not allocate buffer memory for IRQ's. (Buffers are the responsibility of device drivers, which allocate them by device, not by IRQ. On the PCI bus, a single IRQ can be shared by multiple devices.) 

[링크 : http://cable-dsl.navasgroup.com/#SysiniTweak]



근데 암만 생각해서 irq에 버퍼를 준다는건 이해가 안가는데..

irq를 통해서 dos 시절에는 시스템 콜 처럼 사용했었으니.. irq에 메모리를 할당하는게 아니라

시스템 메모리 일부를 해당 장비를 위한 버퍼로 쓰라는 의미가 되려나?



검색을 해봐도 한 10년 정도 전에 네트워크 속도 향상 팁이라고 나오고

갑자기 국내에서 이걸로 그래픽카드 속도 향상 팁이라고 나오는데.. 출처를 모르겠네..

[링크 : http://www.nprotect.com/service/incheon/wintip_view.html?no=28&page=3&key=&keyfield=]



아니면.. PnP 그래픽 카드라 문법만 irq고

실제로는 그래픽 카드쪽 자원중 메모리를 좀더 할당해 주는걸려나..

[링크 : http://www.tldp.org/HOWTO/Plug-and-Play-HOWTO-2.html]


그냥 미신이라고도 하는데.

system.ini는 16비트 호환모드를 위한 설정이라고 흐음..

386enh를 보면 386 확장모드를 위한 것 같긴한데.. 헷갈리네

[링크 : http://superuser.com/questions/627214/what-does-irq14-4096-do-in-system-ini]



2000년 info world 라는책에서 나온 내용인가? 흐음... win2000과 win9X 계열을 위한 팁이라는데...

[링크 : https://books.google.com/books?id=tTkEAAAAMBAJ&pg=PA94&lpg=PA94&dq=system.ini+386enh+technet&source=bl&ots=xqY_4vhnrR&sig=oBAAt-XIqKZX4fnzyGg0Qn45Www&hl=ko&sa=X&redir_esc=y#v=onepage&q=system.ini%20386enh%20technet&f=false]

'Microsoft > Windows' 카테고리의 다른 글

win7 자격 증명 저장관련  (0) 2016.06.23
win10 on bash / linux!  (0) 2016.03.31
win7 starter / home premium 메모리 사용량  (0) 2015.11.08
win7 starter?  (0) 2015.11.07
IE 보호모드  (0) 2015.09.14
Posted by 구차니