Author Topic: C compiler output  (Read 89 times)

Offline hobomatic

  • Member
  • *
  • Posts: 1
C compiler output
« on: May 02, 2017, 01:10:18 PM »
Just debugging hello world without debugging symbols, and it looks like the linker separates some segments of executable code with sections filled with int3. Is this accidental, intentional, or is this not coming from the linker? If its intentional, what is the rationale behind it? Just curious. I thought maybe it was some sort of code injection/reversing protection or something. Neither of which I know much about, but both of which I am actively researching.

Offline Grincheux

  • Member
  • *
  • Posts: 169
  • Never be pleased, Always Improved
    • Today, it's yestirday and Tomorrow
Re: C compiler output
« Reply #1 on: May 02, 2017, 02:38:03 PM »
INT 3 (0xCC) is used for aligment.
I never found that Pelle's C Compiler created may code segments.
Try to tell the linker to create the map file.
Today, it's yestirday and Tomorrow