[hellogcc] gcc中的reloc实现简介

  • From: Liu <proljc@xxxxxxxxx>
  • To: hellogcc <hellogcc@xxxxxxxxxxxxx>
  • Date: Thu, 20 Oct 2011 17:09:19 +0800

我做的时候没找到资料,现在尝试造一个资料。
#include <stdio.h>

int add(int a, int b)
{
  int c;
  c = a + b;
}

int main(void)
{
  int c;

  c = add(1, 2);
  printf("c = %d\n", c);

  return 0;
}

Other related posts: