Okay, so what I referred to in that post as "heap" is from the code segment. I found this:
oozie's blog: [0x03]. Notes on Assembly - Memory from a process' point of view
And added a line to main:
Code:
printf("\n%p <- global func address\n", &print_sorted);
print_sorted() being one of the functions, of course. Output:
1.(0x6d8a9104) stack
2.(0x008b0010) heap
3.(0x00601030) bss
4.(0x00400890) const's
5.(0x0040073e) code
0x4005e4 <- global func address
I guess it makes sense to call that the "code" segment.