Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kijiki
· 6y ago · 0 comments
> ...a global constant would go in the TEXT section of the binary...
Wouldn't it go into the .rodata section, not .text?
Comments
[–]
codezero
6y ago
I'm not sure, I am parroting what I thought I read on SO - so you are much more likely to be right, sorry about that!
[–]
vivekseth
6y ago
clang seems to work this way, and macOS aliases gcc -> clang by default. Wrote more about this here:
https://news.ycombinator.com/item?id=23634495
[–]
codezero
6y ago
Thanks! Glad there's an explanation for my confusion :)