bfd: Rename Chunk and S3Forced
authorPedro Alves <palves@redhat.com>
Fri, 17 Feb 2017 01:26:12 +0000 (01:26 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 17 Feb 2017 01:26:12 +0000 (01:26 +0000)
commit4bc26c69597fea658dc9ce020b27e8d2ecdbe1a3
tree557c323e7a1ae695e8da36b8349316ca67241de5
parent7ec22e0f1e08e96718ac27ea57a1dca0707a8b02
bfd: Rename Chunk and S3Forced

The direct references in objcopy kind of look like a hack to me, so
I'm calling these symbols internal too.  Certainly they aren't named
and documented as a public BFD symbol today anyway.

So ... give these bfd-internal symbols with external linkage a _bfd_
prefix to avoid collisions in the global symbol namespace.

While at it, give them names that more closely match the corresponding
option name that toggles them.

Also while at it, fix a few related comment typos.

gdb/ChangeLog:
2017-02-17  Pedro Alves  <palves@redhat.com>

* srec.c (Chunk): Rename to ...
(_bfd_srec_len): ... this.
(S3Forced): Rename to ...
(_bfd_srec_forceS3): ... this.
* objcopy.c: Adjust all references.
bfd/ChangeLog
bfd/srec.c
binutils/objcopy.c