binutils-gdb/include/coff
Clément Chigot add588a8ef gas: add visibility support for XCOFF
XCOFF assembly defines the visibility using an additional argument
on several pseudo-ops: .globl, .weak, .extern and .comm.
This implies that .globl and .weak syntax is different than the
usual GNU syntax. But we want to provide compatibility with AIX
assembler, especially because GCC is generating the visibility
using this XCOFF syntax.

PR 22085

bfd/ChangeLog:

        * coffcode.h (coff_write_object_contents): Change XCOFF header
        vstamp field to 2.
        * coffgen.c (coff_print_symbol): Increase the size for n_type.

gas/ChangeLog:

        * config/tc-ppc.c (ppc_xcoff_get_visibility): New function.
        (ppc_globl): New function.
        (ppc_weak): New function.
        (ppc_comm): Add visibility field support.
        (ppc_extern): Likewise.
        * testsuite/gas/all/cofftag.d: Adjust to new n_type size
        providing by objdump.
        * testsuite/gas/ppc/test1xcoff32.d: Likewise.
        * testsuite/gas/ppc/aix.exp: Add new tests.
        * testsuite/gas/ppc/xcoff-visibility-1-32.d: New test.
        * testsuite/gas/ppc/xcoff-visibility-1-64.d: New test.
        * testsuite/gas/ppc/xcoff-visibility-1.s: New test.

include/ChangeLog:

        * coff/internal.h (SYM_V_INTERNAL, SYM_V_HIDDEN,
        SYM_V_PROTECTED, SYM_V_EXPORTED, SYM_V_MASK): New defines.
        * coff/xcoff.h (struct xcoff_link_hash_entry): Add visibility
        field.

ld/ChangeLog:

        * testsuite/ld-pe/pr19803.d: Adjust to new n_type size
        providing by objdump.
2022-01-12 09:08:11 +01:00
..
aarch64.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
alpha.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
arm.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
ChangeLog-0415 binutils ChangeLog rotation 2016-01-01 22:59:17 +10:30
ChangeLog-9103
ecoff.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
external.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
i386.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
ia64.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
internal.h gas: add visibility support for XCOFF 2022-01-12 09:08:11 +01:00
mcore.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
mips.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
msdos.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
pe.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
rs6k64.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
rs6000.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
sh.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
sym.h PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
symconst.h
ti.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
tic4x.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
tic30.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
tic54x.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
x86_64.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
xcoff.h gas: add visibility support for XCOFF 2022-01-12 09:08:11 +01:00
z8k.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
z80.h Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30