diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-09-30 10:55:02 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-09-30 10:55:02 +0200 |
commit | 3bf4994276269a241d97f8ccb5171fe581baa4cb (patch) | |
tree | d9f192c522fc3e9ae660fc97a30433646104e93e /binutils/objcopy.c | |
parent | d988b231b0db7b3d6a1e21706bb9920b734f15cf (diff) | |
download | gdb-3bf4994276269a241d97f8ccb5171fe581baa4cb.zip gdb-3bf4994276269a241d97f8ccb5171fe581baa4cb.tar.gz gdb-3bf4994276269a241d97f8ccb5171fe581baa4cb.tar.bz2 |
objcopy: avoid "shadowing" of remove() function name
remove() is a standard library function (declared in stdio.h), which
triggers a "shadows a global declaration" warning with some gcc versions.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index fc668f0..e9be763 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -4091,7 +4091,7 @@ setup_section (bfd *ibfd, sec_ptr isection, void *obfdarg) && (flags & (SEC_ALLOC | SEC_GROUP)) != 0 && !is_nondebug_keep_contents_section (ibfd, isection)) { - flagword remove = SEC_HAS_CONTENTS | SEC_LOAD | SEC_GROUP; + flagword clr = SEC_HAS_CONTENTS | SEC_LOAD | SEC_GROUP; if (bfd_get_flavour (obfd) == bfd_target_elf_flavour) { @@ -4100,7 +4100,7 @@ setup_section (bfd *ibfd, sec_ptr isection, void *obfdarg) being used with GDB, if they were based upon files that originally contained groups. */ if (flags & SEC_GROUP) - remove = SEC_LOAD; + clr = SEC_LOAD; else make_nobits = true; @@ -4108,9 +4108,9 @@ setup_section (bfd *ibfd, sec_ptr isection, void *obfdarg) elf.c:copy_private_bfd_data that section flags have not changed between input and output sections. This hack prevents wholesale rewriting of the program headers. */ - isection->flags &= ~remove; + isection->flags &= ~clr; } - flags &= ~remove; + flags &= ~clr; } osection = bfd_make_section_anyway_with_flags (obfd, name, flags); |