How to get section address and size

Hi

I want to get the BSS section and .constdata seciton's base address and size in C code. Does anyone knows how to get them ? Thanks very much !