mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-03-03 23:17:25 +00:00
Move VMS version of SUB_SEGMENT_ALIGN to obj-vms.h from write.h.
This commit is contained in:
parent
51d8eae92d
commit
22a8927a96
@ -22,13 +22,21 @@ to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
#include "targ-cpu.h"
|
#include "targ-cpu.h"
|
||||||
|
|
||||||
|
/* This macro controls subsection alignment within a section.
|
||||||
|
*
|
||||||
|
* Under VAX/VMS, the linker (and PSECT specifications)
|
||||||
|
* take care of correctly aligning the segments.
|
||||||
|
* Doing the alignment here (on initialized data) can
|
||||||
|
* mess up the calculation of global data PSECT sizes.
|
||||||
|
*/
|
||||||
|
#define SUB_SEGMENT_ALIGN(SEG) (((SEG) == data_section) ? 0 : 2)
|
||||||
|
|
||||||
/* This flag is used to remember whether we are in the const or the
|
/* This flag is used to remember whether we are in the const or the
|
||||||
data section. By and large they are identical, but we set a no-write
|
data section. By and large they are identical, but we set a no-write
|
||||||
bit for psects in the const section. */
|
bit for psects in the const section. */
|
||||||
|
|
||||||
extern char const_flag;
|
extern char const_flag;
|
||||||
|
|
||||||
|
|
||||||
/* These are defined in obj-vms.c. */
|
/* These are defined in obj-vms.c. */
|
||||||
extern const short seg_N_TYPE[];
|
extern const short seg_N_TYPE[];
|
||||||
extern const segT N_TYPE_seg[];
|
extern const segT N_TYPE_seg[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user