From: Christian Weisgerber Subject: Re: const-ify more tables To: gameoftrees@openbsd.org Date: Sat, 19 Mar 2022 22:23:36 +0100 Christian Weisgerber: > > Those all look correct. Out of curiosity, are you finding these > > manually or using a tool to help? > > I looked over the matches from > > $ grep -R '=[ ]*{' . | fgrep -v const Another approach is to run objdump -x on the unstripped executable and look at what ends up in the .data segment. $ objdump -x got/obj/got |grep '\.data[^.]' 23 .data 00000018 00000000000af820 00000000000af820 000ac820 2**4 00000000000af820 l O .data 0000000000000018 repo_extensions -- Christian "naddy" Weisgerber naddy@mips.inka.de