* ldgram.y (PHDRS): New token.
authorIan Lance Taylor <ian@airs.com>
Fri, 1 Dec 1995 21:49:51 +0000 (21:49 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 1 Dec 1995 21:49:51 +0000 (21:49 +0000)
commit061e65f8551b1ed3af488dddb92d947c868d4948
tree7f12c87b4a03e064acdf42d888de4ac865ed709c
parentae0a6bea51963cb58d2df3e5b453efdcfdd41628
* ldgram.y (PHDRS): New token.
(ifile_p1): Accept phdrs.
(section): Accept phdr_opt at the end of the section definition.
(phdr_op): New nonterminal.
(phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
* ldlex.l: Accept PHDRS.
* ldlang.h (struct lang_output_section_phdr_list): Define.
(lang_output_section_statement_type): Add phdrs field.
(struct lang_phdr): Define.
(LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
(lang_new_phdr): Declare.
* ldlang.c (lang_phdr_list): New static variable.
(lang_output_section_statement_lookup): Initialize phdrs field.
(lang_process): Call lang_record_phdrs.
(lang_new_phdr): New function.
(lang_section_in_phdr): New function.
(lang_record_phdrs): New static function.
* ld.texinfo: Document PHDRS.
ld/ChangeLog
ld/ldlang.c