<commit_before>/* Copyright 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
SECTIONS {
  .rodata.ec_sections : {
    /* Symbols defined here are declared in link_defs.h */
    __irqprio = .;
    *(.rodata.irqprio)
    __irqprio_end = .;

    . = ALIGN(8);
    __cmds = .;
    *(SORT(.rodata.cmds*))
    __cmds_end = .;

    . = ALIGN(8);
    __hcmds = .;
    *(SORT(.rodata.hcmds*))
    __hcmds_end = .;

    . = ALIGN(4);
    __mkbp_evt_srcs = .;
    KEEP(*(.rodata.evtsrcs))
    __mkbp_evt_srcs_end = .;

    . = ALIGN(8);
    __hooks_init = .;
    *(.rodata.HOOK_INIT)
    __hooks_init_end = .;

    __hooks_pre_freq_change = .;
    *(.rodata.HOOK_PRE_FREQ_CHANGE)
    __hooks_pre_freq_change_end = .;

    __hooks_freq_change = .;
    *(.rodata.HOOK_FREQ_CHANGE)
    __hooks_freq_change_end = .;

    __hooks_sysjump = .;
    *(.rodata.HOOK_SYSJUMP)
    __hooks_sysjump_end = .;

    __hooks_chipset_pre_init = .;
    *(.rodata.HOOK_CHIPSET_PRE_INIT)
    __hooks_chipset_pre_init_end = .;

    __hooks_chipset_startup = .;
    *(.rodata.HOOK_CHIPSET_STARTUP)
    __hooks_chipset_startup_end = .;

    __hooks_chipset_resume = .;
    *(.rodata.HOOK_CHIPSET_RESUME)
    __hooks_chipset_resume_end = .;

    __hooks_chipset_suspend = .;
    *(.rodata.HOOK_CHIPSET_SUSPEND)
    __hooks_chipset_suspend_end = .;

    __hooks_chipset_shutdown = .;
    *(.rodata.HOOK_CHIPSET_SHUTDOWN)
    __hooks_chipset_shutdown_end = .;

    __hooks_chipset_reset = .;
    *(.rodata.HOOK_CHIPSET_RESET)
    __hooks_chipset_reset_end = .;

    __hooks_ac_change = .;
    *(.rodata.HOOK_AC_CHANGE)
    __hooks_ac_change_end = .;

    __hooks_lid_change = .;
    *(.rodata.HOOK_LID_CHANGE)
    __hooks_lid_change_end = .;

    __hooks_tablet_mode_change = .;
    KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
    __hooks_tablet_mode_change_end = .;

    __hooks_base_attached_change = .;
    KEEP(*(.rodata.HOOK_BASE_ATTACHED_CHANGE))
    __hooks_base_attached_change_end = .;

    __hooks_pwrbtn_change = .;
    *(.rodata.HOOK_POWER_BUTTON_CHANGE)
    __hooks_pwrbtn_change_end = .;

    __hooks_battery_soc_change = .;
    *(.rodata.HOOK_BATTERY_SOC_CHANGE)
    __hooks_battery_soc_change_end = .;

    __hooks_tick = .;
    *(.rodata.HOOK_TICK)
    __hooks_tick_end = .;

    __hooks_second = .;
    *(.rodata.HOOK_SECOND)
    __hooks_second_end = .;

    __hooks_usb_pd_disconnect = .;
    *(.rodata.HOOK_USB_PD_DISCONNECT)
    __hooks_usb_pd_disconnect_end = .;

    __hooks_usb_pd_connect = .;
    KEEP(*(.rodata.HOOK_USB_PD_CONNECT))
    __hooks_usb_pd_connect_end = .;

    __deferred_funcs = .;
    *(.rodata.deferred)
    __deferred_funcs_end = .;

    __test_i2c_xfer = .;
    *(.rodata.test_i2c.xfer)
    __test_i2c_xfer_end = .;
  }
}
INSERT BEFORE .rodata;

SECTIONS {
  .bss.ec_sections : {
    /* Symbols defined here are declared in link_defs.h */
    . = ALIGN(8);
    __deferred_until = .;
    . += (__deferred_funcs_end - __deferred_funcs) * (8 / 4);
    __deferred_until_end = .;
  }
}<commit_msg>core/host: Format linker script<commit_after>/* Copyright 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
SECTIONS {
	.rodata.ec_sections : {
		/* Symbols defined here are declared in link_defs.h */
		__irqprio = .;
		*(.rodata.irqprio)
		__irqprio_end = .;

		. = ALIGN(8);
		__cmds = .;
		*(SORT(.rodata.cmds*))
		__cmds_end = .;

		. = ALIGN(8);
		__hcmds = .;
		*(SORT(.rodata.hcmds*))
		__hcmds_end = .;

		. = ALIGN(4);
		__mkbp_evt_srcs = .;
		KEEP(*(.rodata.evtsrcs))
		__mkbp_evt_srcs_end = .;

		. = ALIGN(8);
		__hooks_init = .;
		*(.rodata.HOOK_INIT)
		__hooks_init_end = .;

		__hooks_pre_freq_change = .;
		*(.rodata.HOOK_PRE_FREQ_CHANGE)
		__hooks_pre_freq_change_end = .;

		__hooks_freq_change = .;
		*(.rodata.HOOK_FREQ_CHANGE)
		__hooks_freq_change_end = .;

		__hooks_sysjump = .;
		*(.rodata.HOOK_SYSJUMP)
		__hooks_sysjump_end = .;

		__hooks_chipset_pre_init = .;
		*(.rodata.HOOK_CHIPSET_PRE_INIT)
		__hooks_chipset_pre_init_end = .;

		__hooks_chipset_startup = .;
		*(.rodata.HOOK_CHIPSET_STARTUP)
		__hooks_chipset_startup_end = .;

		__hooks_chipset_resume = .;
		*(.rodata.HOOK_CHIPSET_RESUME)
		__hooks_chipset_resume_end = .;

		__hooks_chipset_suspend = .;
		*(.rodata.HOOK_CHIPSET_SUSPEND)
		__hooks_chipset_suspend_end = .;

		__hooks_chipset_shutdown = .;
		*(.rodata.HOOK_CHIPSET_SHUTDOWN)
		__hooks_chipset_shutdown_end = .;

		__hooks_chipset_reset = .;
		*(.rodata.HOOK_CHIPSET_RESET)
		__hooks_chipset_reset_end = .;

		__hooks_ac_change = .;
		*(.rodata.HOOK_AC_CHANGE)
		__hooks_ac_change_end = .;

		__hooks_lid_change = .;
		*(.rodata.HOOK_LID_CHANGE)
		__hooks_lid_change_end = .;

		__hooks_tablet_mode_change = .;
		KEEP(*(.rodata.HOOK_TABLET_MODE_CHANGE))
		__hooks_tablet_mode_change_end = .;

		__hooks_base_attached_change = .;
		KEEP(*(.rodata.HOOK_BASE_ATTACHED_CHANGE))
		__hooks_base_attached_change_end = .;

		__hooks_pwrbtn_change = .;
		*(.rodata.HOOK_POWER_BUTTON_CHANGE)
		__hooks_pwrbtn_change_end = .;

		__hooks_battery_soc_change = .;
		*(.rodata.HOOK_BATTERY_SOC_CHANGE)
		__hooks_battery_soc_change_end = .;

		__hooks_tick = .;
		*(.rodata.HOOK_TICK)
		__hooks_tick_end = .;

		__hooks_second = .;
		*(.rodata.HOOK_SECOND)
		__hooks_second_end = .;

		__hooks_usb_pd_disconnect = .;
		*(.rodata.HOOK_USB_PD_DISCONNECT)
		__hooks_usb_pd_disconnect_end = .;

		__hooks_usb_pd_connect = .;
		KEEP(*(.rodata.HOOK_USB_PD_CONNECT))
		__hooks_usb_pd_connect_end = .;

		__deferred_funcs = .;
		*(.rodata.deferred)
		__deferred_funcs_end = .;

		__test_i2c_xfer = .;
		*(.rodata.test_i2c.xfer)
		__test_i2c_xfer_end = .;
	}
}
INSERT BEFORE .rodata;

SECTIONS {
	.bss.ec_sections : {
		/* Symbols defined here are declared in link_defs.h */
		. = ALIGN(8);
		__deferred_until = .;
		. += (__deferred_funcs_end - __deferred_funcs) * (8 / 4);
		__deferred_until_end = .;
	}
}
{'fraction_non_alphanumeric': 0.12665343915343916, 'fraction_numerical': 0.004629629629629629, 'mean_word_length': 3.2508784258608574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6501629', 'n_tokens_mistral': 2770, 'n_tokens_neox': 2719, 'n_words': 281}