[macOS] deprecated warning for getsectdata since macOS 13.0
Hi,
While compiling U-boot 2023.10 on MacOS, these two warnings shows up:
tools/imagetool.c:15:2: warning: 'getsectdata' is deprecated: first deprecated in macOS 13.0 [-Wdeprecated-declarations]
INIT_SECTION(image_type);
^
./tools/imagetool.h:280:32: note: expanded from macro 'INIT_SECTION'
char *__cat(pstart_, name) = getsectdata("__DATA", \
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach-o/getsect.h:46:14: note: 'getsectdata' has been explicitly marked deprecated here
extern char *getsectdata(
^
tools/imagetool.c:43:2: warning: 'getsectdata' is deprecated: first deprecated in macOS 13.0 [-Wdeprecated-declarations]
INIT_SECTION(image_type);
^
./tools/imagetool.h:280:32: note: expanded from macro 'INIT_SECTION'
char *__cat(pstart_, name) = getsectdata("__DATA", \
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach-o/getsect.h:46:14: note: 'getsectdata' has been explicitly marked deprecated here
extern char *getsectdata(
^
2 warnings generated.
I checked master branch and it seems like it is not fixed there.