I am trying to compile this code fragment into my program (taken from lib/libc/amd64/sys/sbrk.S):
void my_func() {
 ...
  __asm__ __volatile__(
      "movq .curbrk(%%rip), %%rax;"
      "lea  .curbrk(%%rip), %%rdx;"
      "movq %%rax, %0;"
      "movq %%rdx, %1;"
      : "=r" (my_curbrk),
        "=r" (my_curbrk_ptr)
      :: "%rax", "%rdx");
  ...
}

I get a warning:
/usr/bin/ld: warning: type and size of dynamic symbol `.curbrk@@FBSDprivate_1.0' are not defined

What is the correct way to declare .curbrk in in-place assembly?

Yuri
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to