aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-10-12 09:41:33 +1030
committerAlan Modra <amodra@gmail.com>2016-10-12 09:41:33 +1030
commit821e6ff6299aa39e841ca50e1ae8a98e3554fd5f (patch)
tree2a15932e6386a5bc5554e4f5bfe7cffd16c062f7 /bfd/elf.c
parent56fdab47732aa0e051d3442fdedbe602ce367cf9 (diff)
BFD_FAKE_SECTION macro params
Order NAME, IDX, FLAGS as per STD_SECTION macro. * section.c (BFD_FAKE_SECTION): Reorder parameters. Formatting. (STD_SECTION): Adjust to suit. * elf.c (_bfd_elf_large_com_section): Likewise. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index c0961914d1..a85498d2ce 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -11034,10 +11034,12 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
return n;
}
-/* It is only used by x86-64 so far. */
+/* It is only used by x86-64 so far.
+ ??? This repeats *COM* id of zero. sec->id is supposed to be unique,
+ but current usage would allow all of _bfd_std_section to be zero. t*/
asection _bfd_elf_large_com_section
- = BFD_FAKE_SECTION (_bfd_elf_large_com_section,
- SEC_IS_COMMON, NULL, "LARGE_COMMON", 0);
+ = BFD_FAKE_SECTION (_bfd_elf_large_com_section, NULL,
+ "LARGE_COMMON", 0, SEC_IS_COMMON);
void
_bfd_elf_post_process_headers (bfd * abfd,